Fix lint warnings

This commit is contained in:
Tahaa-Dev 2026-07-22 05:23:52 +03:00 committed by Taha Mahmoud
parent b039289b11
commit 16356aae4e
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -237,7 +237,7 @@ mod tests {
&path
.trim_start_matches("ALIASES=")
.split(",")
.map(|alias| Cow::Borrowed(alias))
.map(Cow::Borrowed)
.collect::<HashSet<Cow<'_, str>>>(),
)
} else {