Run a round of clippy --fix to fix a ton of lints (#7006)

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
Alex Saveau
2022-11-04 13:11:17 -07:00
committed by GitHub
parent f1bde69131
commit be5d71ea47
32 changed files with 51 additions and 53 deletions

View File

@ -74,7 +74,7 @@ impl NuProcess {
}
pub fn construct(&self) -> Command {
let mut command = Command::new(&executable_path());
let mut command = Command::new(executable_path());
if let Some(cwd) = self.get_cwd() {
command.current_dir(cwd);
@ -84,7 +84,7 @@ impl NuProcess {
let paths = vec![test_bins_path()];
let paths_joined = match std::env::join_paths(&paths) {
let paths_joined = match std::env::join_paths(paths) {
Ok(all) => all,
Err(_) => panic!("Couldn't join paths for PATH var."),
};