Skip to content

Commit c503fe8

Browse files
committed
satisfied clippy
1 parent 07e041c commit c503fe8

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/dotfiles.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ pub fn get_dotfile_from_path(target_path: &Path) -> Option<Dotfile> {
475475
return None;
476476
}
477477

478-
479478
if let Ok(dotfile) = dotfiles::Dotfile::try_from(file_path.clone()) {
480479
return Some(dotfile);
481480
}

src/hooks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn execute_script(group: &str, script: &Path) -> Result<(), ExitCode> {
7878
#[cfg(windows)]
7979
let mut command = Command::new("cmd");
8080
#[cfg(windows)]
81-
command.arg("/c").arg(&script);
81+
command.arg("/c").arg(script);
8282

8383
let mut output = match command.spawn() {
8484
Ok(output) => output,
@@ -155,7 +155,7 @@ fn run_set_hook(ctx: &Context, group: &str, hook_type: DeployStep) -> Result<(),
155155
continue;
156156
}
157157

158-
execute_script(&group, file.as_path())?;
158+
execute_script(group, file.as_path())?;
159159
}
160160

161161
Ok(())

src/symlinks.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ impl<'a> SymlinkHandler<'a> {
477477
let Ok(dotfile) = Dotfile::try_from(file) else {
478478
continue;
479479
};
480-
println!("{:?}", dotfile);
481480
added_files.insert(dotfile);
482481
}
483482
}

0 commit comments

Comments
 (0)