feat: fix clippy

This commit is contained in:
2023-10-25 07:21:27 +08:00
parent f039c183b2
commit d5cb25cc6a
3 changed files with 7 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ impl Cryptor {
match algorithm {
"aes256-gcm" | consts::TINY_ENC_AES_GCM => Ok(Cryptor::Aes256Gcm),
"chacha20-poly1305" | consts::TINY_ENC_CHACHA20_POLY1305 => Ok(Cryptor::ChaCha20Poly1305),
_ => simple_error!("Unknown altorighm: {}",algorithm),
_ => simple_error!("Unknown algorithm: {}",algorithm),
}
}