clippy: identical conversion

This commit is contained in:
Graham Christensen 2019-01-02 19:18:26 -05:00
parent f2a0ca259e
commit 91e23d101e
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 4 additions and 5 deletions

View file

@ -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<String> {
BufReader::new(file)
.lines()
.into_iter()
.filter(|line| line.is_ok())
.map(|line| line.unwrap())
.collect()

View file

@ -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 {