Skip to content

Commit a18e395

Browse files
committed
Code cleanup
1 parent 048c58a commit a18e395

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/fdo_magic/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn from_u8_singlerule(bytes: &[u8], rule: &super::MagicRule) -> bool {
66
let bound_min = rule.start_off as usize;
77
let bound_max = rule.start_off as usize + rule.val.len() + rule.region_len as usize;
88

9-
if (bytes.len()) < bound_max {
9+
if bound_max > bytes.len() {
1010
return false;
1111
}
1212
let testarea = &bytes[bound_min..bound_max];

0 commit comments

Comments
 (0)