Fix clippy lints (#4262)

* Fix clippy lints

* Fix clippy lints

* Fix clippy lints
This commit is contained in:
JT
2022-01-18 07:33:28 -05:00
committed by GitHub
parent e6c09f2dfc
commit f562a4526c
11 changed files with 16 additions and 17 deletions

View File

@ -970,7 +970,7 @@ fn move_item(from: &Path, from_tag: &Tag, to: &Path) -> Result<(), ShellError> {
} {
Ok(_) => Ok(()),
Err(e) => Err(ShellError::labeled_error(
format!("Could not move {:?} to {:?}. {:}", from, to, e.to_string()),
format!("Could not move {:?} to {:?}. {:}", from, to, e),
"could not move",
from_tag,
)),

View File

@ -147,7 +147,7 @@ pub fn process_script(
{
val.to_string()
} else {
format!("{}\\", name.to_string())
format!("{}\\", name)
}
} else {
name.to_string()