Skip to content

Commit

Permalink
chore: Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Apr 25, 2024
1 parent dbe377a commit 8f8d69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub(crate) fn parse_opts(mut input: &[u8]) -> Option<Opts> {

if name.eq_ignore_ascii_case("blksize") {
if let Ok(val) = u16::from_str(val) {
if val >= 8 && val <= 65464 {
if (8..=65464).contains(&val) {
opts.block_size = Some(val);
}
}
Expand Down

0 comments on commit 8f8d69c

Please sign in to comment.