diff --git a/src/find/matchers/printf.rs b/src/find/matchers/printf.rs index 4a8578f..586f4ed 100644 --- a/src/find/matchers/printf.rs +++ b/src/find/matchers/printf.rs @@ -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 }