Merge pull request #188 from uutils/sylvestre-patch-1

Fix a clippy warning
This commit is contained in:
Sylvestre Ledru
2022-10-21 09:15:17 +02:00
committed by GitHub
+1 -1
View File
@@ -206,7 +206,7 @@ impl FormatStringParser<'_> {
if digits > 0 {
// safe to unwrap: we already know all the digits are valid due to
// the above checks.
Some((&start[0..digits]).parse().unwrap())
Some((start[0..digits]).parse().unwrap())
} else {
None
}