From 32e7870fad56f4cb7ef3d28248381ce175cba752 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 15 Oct 2023 03:37:07 -0700 Subject: [PATCH] feat: change delim from FAT_ARROW to colon --- src/lune/builtins/serde/crypto.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lune/builtins/serde/crypto.rs b/src/lune/builtins/serde/crypto.rs index 3c98a9d..b290556 100644 --- a/src/lune/builtins/serde/crypto.rs +++ b/src/lune/builtins/serde/crypto.rs @@ -9,7 +9,7 @@ use mlua::prelude::*; // TODO: Proper error handling, remove unwraps macro_rules! impl_hash_algo { - ($($algo:ident => $Type:ty),*) => { + ($($algo:ident: $Type:ty),*) => { #[derive(Clone)] pub enum CryptoAlgo { $( @@ -63,12 +63,12 @@ macro_rules! impl_hash_algo { // Macro call creates the CryptoAlgo enum and implementations for it // It also adds a method corresponding to the enum in the `Crypto` struct impl_hash_algo! { - Sha1 => sha1::Sha1, - Sha256 => sha2::Sha256, - Sha512 => sha2::Sha512, - Md5 => md5::Md5, - Blake2s256 => blake2::Blake2s256, - Blake2b512 => blake2::Blake2b512 + Sha1: sha1::Sha1, + Sha256: sha2::Sha256, + Sha512: sha2::Sha512, + Md5: md5::Md5, + Blake2s256: blake2::Blake2s256, + Blake2b512: blake2::Blake2b512 } #[derive(Clone)]