mirror of
https://github.com/lune-org/lune.git
synced 2025-04-19 19:34:02 +01:00
feat: change delim from FAT_ARROW to colon
This commit is contained in:
parent
8cafaed68e
commit
32e7870fad
1 changed files with 7 additions and 7 deletions
|
@ -9,7 +9,7 @@ use mlua::prelude::*;
|
||||||
// TODO: Proper error handling, remove unwraps
|
// TODO: Proper error handling, remove unwraps
|
||||||
|
|
||||||
macro_rules! impl_hash_algo {
|
macro_rules! impl_hash_algo {
|
||||||
($($algo:ident => $Type:ty),*) => {
|
($($algo:ident: $Type:ty),*) => {
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub enum CryptoAlgo {
|
pub enum CryptoAlgo {
|
||||||
$(
|
$(
|
||||||
|
@ -63,12 +63,12 @@ macro_rules! impl_hash_algo {
|
||||||
// Macro call creates the CryptoAlgo enum and implementations for it
|
// Macro call creates the CryptoAlgo enum and implementations for it
|
||||||
// It also adds a method corresponding to the enum in the `Crypto` struct
|
// It also adds a method corresponding to the enum in the `Crypto` struct
|
||||||
impl_hash_algo! {
|
impl_hash_algo! {
|
||||||
Sha1 => sha1::Sha1,
|
Sha1: sha1::Sha1,
|
||||||
Sha256 => sha2::Sha256,
|
Sha256: sha2::Sha256,
|
||||||
Sha512 => sha2::Sha512,
|
Sha512: sha2::Sha512,
|
||||||
Md5 => md5::Md5,
|
Md5: md5::Md5,
|
||||||
Blake2s256 => blake2::Blake2s256,
|
Blake2s256: blake2::Blake2s256,
|
||||||
Blake2b512 => blake2::Blake2b512
|
Blake2b512: blake2::Blake2b512
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue