Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Apr 19, 2024
1 parent 887bc4a commit fbbf2cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![deny(warnings)]
use anyhow::Context;
use clap::Parser;
use env_logger;
use std::convert::TryInto;
use std::io::BufRead;
use std::process::exit;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl Ka3005p {
let printable_ascii = |bytes: Vec<u8>| -> String {
bytes
.into_iter()
.filter(|&b| b >= 32 && b <= 126)
.filter(|&b| (32..=126).contains(&b))
.collect::<Vec<u8>>()
.into_iter()
.map(|b| b as char)
Expand Down

0 comments on commit fbbf2cd

Please sign in to comment.