From 2cdcab8578a390d04988c781876b773edcf34bcb Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 27 Aug 2024 00:45:23 +0300 Subject: [PATCH] refactor(cli): Satiate clippy --- src/status/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status/mod.rs b/src/status/mod.rs index 7ab112d..9431c14 100644 --- a/src/status/mod.rs +++ b/src/status/mod.rs @@ -108,7 +108,7 @@ pub fn get_sources() -> Result> { if !path.exists() { continue; } - if let Ok(part) = path.strip_prefix(&sourcedir) { + if let Ok(part) = path.strip_prefix(sourcedir) { let mut components = part.components(); if let Some(path::Component::Normal(name)) = components.next() { let n = name.to_str().unwrap();