diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-05-15 18:23:23 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-05-15 18:23:23 +0200 |
commit | 9d6aef34add7a1bf32e754951a3d500721a2e626 (patch) | |
tree | ce7fffb46b9071b73a35620980cd25c060a7c908 /src/cryptoblob.rs | |
parent | 024d8df847ce720f0ec76b288c7a0142672d21f2 (diff) | |
download | aerogramme-9d6aef34add7a1bf32e754951a3d500721a2e626.tar.gz aerogramme-9d6aef34add7a1bf32e754951a3d500721a2e626.zip |
clippy lint fix
Diffstat (limited to 'src/cryptoblob.rs')
-rw-r--r-- | src/cryptoblob.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptoblob.rs b/src/cryptoblob.rs index 395ae21..327a642 100644 --- a/src/cryptoblob.rs +++ b/src/cryptoblob.rs @@ -36,7 +36,7 @@ pub fn seal(plainblob: &[u8], key: &Key) -> Result<Vec<u8>> { use secretbox::{gen_nonce, NONCEBYTES}; // Compress data using zstd - let mut reader = &plainblob[..]; + let mut reader = plainblob; let zstdblob = zstd_encode(&mut reader, 0)?; // Encrypt @@ -63,5 +63,5 @@ pub fn seal_serialize<T: Serialize>(obj: T, key: &Key) -> Result<Vec<u8>> { .with_string_variants(); obj.serialize(&mut se)?; - Ok(seal(&wr, key)?) + seal(&wr, key) } |