From a0129f4eb579709c18b314925b3c79bb56722fe9 Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Tue, 1 Oct 2024 00:09:38 +0200 Subject: [PATCH] style: comply with `needless_borrows_for_generic_args` --- src/reqq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reqq.rs b/src/reqq.rs index bf084b7..b0d647a 100644 --- a/src/reqq.rs +++ b/src/reqq.rs @@ -112,7 +112,7 @@ fn get_all_fpaths(dir: &str) -> Vec { } let path_display = e.path().display().to_string(); - match path_display.as_str().trim_start_matches(&dir) { + match path_display.as_str().trim_start_matches(dir) { "" => None, _ => Some(path_display), }