From 16356aae4eea1d38a60c76f0cc4c0d22e0b9b253 Mon Sep 17 00:00:00 2001 From: Tahaa-Dev Date: Wed, 22 Jul 2026 05:23:52 +0300 Subject: [PATCH] Fix lint warnings --- src/cmd/remove_alias.rs | 2 +- src/db/stream.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/remove_alias.rs b/src/cmd/remove_alias.rs index 7ef3832..780434d 100644 --- a/src/cmd/remove_alias.rs +++ b/src/cmd/remove_alias.rs @@ -12,7 +12,7 @@ impl Run for RemoveAlias { let path_abs = util::resolve_path(&self.path)?; let path_abs = util::path_to_str(&path_abs)?; if path_abs == self.path || !db.remove_alias(path_abs, self.aliases.iter()) { - bail!("path not found in database: {}", &self.path) + bail!("path not found in database: {}", self.path) } } diff --git a/src/db/stream.rs b/src/db/stream.rs index 8f8bce2..e68046c 100644 --- a/src/db/stream.rs +++ b/src/db/stream.rs @@ -237,7 +237,7 @@ mod tests { &path .trim_start_matches("ALIASES=") .split(",") - .map(|alias| Cow::Borrowed(alias)) + .map(Cow::Borrowed) .collect::>>(), ) } else {