diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-20 21:54:29 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-20 21:57:49 +0800 |
| commit | 9a60751a901f568bdeb154c4115235d4f3a0f8b9 (patch) | |
| tree | 65df323f6478bae51473a3d6471df39a596ce9c5 /utils/hex_display/src/lib.rs | |
| parent | a9e5c086584d3e697188be7003f564e7e2137135 (diff) | |
Apply clippy suggestions and improve code quality
Diffstat (limited to 'utils/hex_display/src/lib.rs')
| -rw-r--r-- | utils/hex_display/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hex_display/src/lib.rs b/utils/hex_display/src/lib.rs index 833ab22..a861bee 100644 --- a/utils/hex_display/src/lib.rs +++ b/utils/hex_display/src/lib.rs @@ -76,7 +76,7 @@ fn write_ascii(result: &mut String, chunk: &[u8]) { result.push_str(" |"); for &byte in chunk { - if byte >= 32 && byte <= 126 { + if (32..=126).contains(&byte) { result.push(byte as char); } else { result.push('.'); |
