Fix lint warnings
This commit is contained in:
parent
b039289b11
commit
16356aae4e
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue