From 8ffd11edb77628fbfd697b939e0f83679e3bfe31 Mon Sep 17 00:00:00 2001 From: dyz1990 Date: Sun, 22 Oct 2023 18:23:47 +0800 Subject: [PATCH] Fixed lint warnings --- src/decoders.rs | 4 ++-- src/encoders.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/decoders.rs b/src/decoders.rs index 9f36f4b..db3f9a8 100644 --- a/src/decoders.rs +++ b/src/decoders.rs @@ -142,9 +142,9 @@ pub fn add_decoder( Ok(Decoder::AES256SHA256(de)) } _ => { - return Err(Error::UnsupportedCompressionMethod( + Err(Error::UnsupportedCompressionMethod( method.name().to_string(), - )); + )) } } } diff --git a/src/encoders.rs b/src/encoders.rs index 6839920..2d626fb 100644 --- a/src/encoders.rs +++ b/src/encoders.rs @@ -67,9 +67,9 @@ pub fn add_encoder( Ok(Encoder::AES(Aes256Sha256Encoder::new(input, options)?)) } _ => { - return Err(Error::UnsupportedCompressionMethod( + Err(Error::UnsupportedCompressionMethod( method.name().to_string(), - )); + )) } } }