From 47b76481e51451827530714512b30882d85e3a9a Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 13 Jun 2026 01:36:41 +0200 Subject: chore(treewide): Also fix all `clippy` warnings --- crates/turtle/src/atuin_client/encryption.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates/turtle/src/atuin_client/encryption.rs') diff --git a/crates/turtle/src/atuin_client/encryption.rs b/crates/turtle/src/atuin_client/encryption.rs index 661a6669..f1c921cb 100644 --- a/crates/turtle/src/atuin_client/encryption.rs +++ b/crates/turtle/src/atuin_client/encryption.rs @@ -63,7 +63,7 @@ pub(crate) fn encode_key(key: &Key) -> Result { Ok(buf) } -pub(crate) fn decode_key(key: String) -> Result { +pub(crate) fn decode_key(key: &str) -> Result { use rmp::decode; let buf = BASE64_STANDARD @@ -102,8 +102,6 @@ pub(crate) fn decode_key(key: String) -> Result { #[cfg(test)] mod test { - use pretty_assertions::assert_eq; - #[test] fn key_encodings() { use super::{Key, decode_key, encode_key}; @@ -138,7 +136,7 @@ mod test { ]; for k in valid_encodings { - assert_eq!(decode_key(k.to_owned()).expect(k), key); + assert_eq!(decode_key(k).expect(k), key); } } } -- cgit v1.3.1