From b95879684a2ecec56a829a21d48301a97d07a198 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 21 Oct 2022 08:58:10 +0200 Subject: [PATCH] Fix a clippy warning `this expression borrows a value the compiler would automatically borrow` --- src/find/matchers/printf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/find/matchers/printf.rs b/src/find/matchers/printf.rs index 4a8578f6..586f4edf 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 }