projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename "str" variable to avoid confusion with the primitive type
[nihav.git]
/
nihav-registry
/
src
/
detect.rs
diff --git
a/nihav-registry/src/detect.rs
b/nihav-registry/src/detect.rs
index bb452b2a69a8cec0fdea24f625554417ebd6a0de..3c5a60a8c8f7991735783b568139169331896422 100644
(file)
--- a/
nihav-registry/src/detect.rs
+++ b/
nihav-registry/src/detect.rs
@@
-176,11
+176,11
@@
impl<'a> CC<'a> {
CC::Le(ref arg) => { arg.le(src) },
CC::Gt(ref arg) => { arg.gt(src) },
CC::Ge(ref arg) => { arg.ge(src) },
CC::Le(ref arg) => { arg.le(src) },
CC::Gt(ref arg) => { arg.gt(src) },
CC::Ge(ref arg) => { arg.ge(src) },
- CC::Str(str) => {
- let mut val: Vec<u8> = vec![0; str.len()];
+ CC::Str(str
ng
) => {
+ let mut val: Vec<u8> = vec![0; str
ng
.len()];
let res = src.peek_buf(val.as_mut_slice());
if res.is_err() { return false; }
let res = src.peek_buf(val.as_mut_slice());
if res.is_err() { return false; }
- val == str
+ val == str
ng
}
}
}
}
}
}