fixed clippy errors

This commit is contained in:
Henry Schimke
2022-10-16 13:09:24 -05:00
parent c63dd67e4d
commit accf587bea
5 changed files with 19 additions and 19 deletions

View File

@@ -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;