From 91e23d101ee12b5e01d84a60526a7d4c5879cac3 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 2 Jan 2019 19:18:26 -0500 Subject: [PATCH] clippy: identical conversion --- ofborg/src/nix.rs | 3 +-- ofborg/src/tagger.rs | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ofborg/src/nix.rs b/ofborg/src/nix.rs index d396b7e..9070d74 100644 --- a/ofborg/src/nix.rs +++ b/ofborg/src/nix.rs @@ -210,7 +210,7 @@ impl Nix { Stdio::null() }; - let status = cmd.stdout(Stdio::from(stdout)) + let status = cmd.stdout(stdout) .stderr(Stdio::from(stderr)) .status() .expect("Running a program ..."); @@ -275,7 +275,6 @@ impl Nix { fn lines_from_file(file: File) -> Vec { BufReader::new(file) .lines() - .into_iter() .filter(|line| line.is_ok()) .map(|line| line.unwrap()) .collect() diff --git a/ofborg/src/tagger.rs b/ofborg/src/tagger.rs index 249c497..7c0ee18 100644 --- a/ofborg/src/tagger.rs +++ b/ofborg/src/tagger.rs @@ -147,11 +147,11 @@ impl RebuildTagger { self.selected = vec![ - String::from(format!("10.rebuild-linux: {}", self.bucket(counter_linux))), - String::from(format!( + format!("10.rebuild-linux: {}", self.bucket(counter_linux)), + format!( "10.rebuild-darwin: {}", self.bucket(counter_darwin) - )), + ), ]; for tag in &self.selected {