mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 04:42:35 +00:00
fixed clippy errors
This commit is contained in:
@@ -239,7 +239,7 @@ pub fn isStringOfDigits(value: &str, length: usize) -> bool {
|
||||
}
|
||||
|
||||
pub fn isSubstringOfDigits(value: &str, offset: usize, length: usize) -> bool {
|
||||
if value.is_empty() || length <= 0 {
|
||||
if value.is_empty() || length == 0 {
|
||||
return false;
|
||||
}
|
||||
let max = offset as usize + length;
|
||||
|
||||
Reference in New Issue
Block a user