Add general refactorings (#3996)

This commit is contained in:
Marcin Puc
2021-09-10 00:44:22 +02:00
committed by GitHub
parent ae9f4135c0
commit 51c74eebd0
165 changed files with 540 additions and 615 deletions

View File

@ -103,7 +103,7 @@ impl Executable for Director {
if let Some(pipelines) = &self.pipeline {
let child = process.stdin.as_mut().expect("Failed to open stdin");
for pipeline in pipelines.iter() {
for pipeline in pipelines {
child
.write_all(format!("{}\n", pipeline).as_bytes())
.expect("Could not write to");

View File

@ -94,7 +94,7 @@ impl NuProcess {
let paths = vec![test_bins_path()];
let paths_joined = match std::env::join_paths(paths.iter()) {
let paths_joined = match std::env::join_paths(&paths) {
Ok(all) => all,
Err(_) => panic!("Couldn't join paths for PATH var."),
};