Skip to content

Commit 2ce3f88

Browse files
committed
chore: fix clippy lint
1 parent 88cd693 commit 2ce3f88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/data/byte_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ impl Display for ByteStr {
221221
let mut ctl = false;
222222
for c in s.chars() {
223223
let v = c as u32;
224-
if (c.is_control() && v != 0x20) || v < 0x20 || v >= 0x7F {
224+
if (c.is_control() && v != 0x20) || !(0x20..0x7F).contains(&v) {
225225
if !ctl {
226226
ctl = true;
227227
}

0 commit comments

Comments
 (0)