From 05ac73b44a1b17250b1f581d40127e873f6a3ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 16 Feb 2024 10:25:00 +0100 Subject: [PATCH] Fix clippy warnings --- src/streaming/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/streaming/mod.rs b/src/streaming/mod.rs index f8277e7..324be8f 100644 --- a/src/streaming/mod.rs +++ b/src/streaming/mod.rs @@ -660,9 +660,8 @@ impl ExtensionImpl for super::StagingBackend { )?; let nonce: Bytes = filestore.read(&request.path, request.location)?; - let nonce: &StreamNonce> = (&**nonce) - .try_into() - .map_err(|_| Error::WrongMessageLength)?; + let nonce: &StreamNonce> = + (&**nonce).into(); let aead = ChaCha8Poly1305::new((&*key.material).into()); let decryptor = DecryptorLE31::::from_aead(aead, nonce); backend_ctx.chunked_io_state =