Skip to content

Commit

Permalink
Fixed lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dyz1990 committed Oct 22, 2023
1 parent c8e27b7 commit 8ffd11e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/decoders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ pub fn add_decoder<I: Read>(
Ok(Decoder::AES256SHA256(de))
}
_ => {
return Err(Error::UnsupportedCompressionMethod(
Err(Error::UnsupportedCompressionMethod(
method.name().to_string(),
));
))
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/encoders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ pub fn add_encoder<W: Write>(
Ok(Encoder::AES(Aes256Sha256Encoder::new(input, options)?))
}
_ => {
return Err(Error::UnsupportedCompressionMethod(
Err(Error::UnsupportedCompressionMethod(
method.name().to_string(),
));
))
}
}
}
Expand Down

0 comments on commit 8ffd11e

Please sign in to comment.