clippy: identical conversion
This commit is contained in:
parent
f2a0ca259e
commit
91e23d101e
|
@ -210,7 +210,7 @@ impl Nix {
|
||||||
Stdio::null()
|
Stdio::null()
|
||||||
};
|
};
|
||||||
|
|
||||||
let status = cmd.stdout(Stdio::from(stdout))
|
let status = cmd.stdout(stdout)
|
||||||
.stderr(Stdio::from(stderr))
|
.stderr(Stdio::from(stderr))
|
||||||
.status()
|
.status()
|
||||||
.expect("Running a program ...");
|
.expect("Running a program ...");
|
||||||
|
@ -275,7 +275,6 @@ impl Nix {
|
||||||
fn lines_from_file(file: File) -> Vec<String> {
|
fn lines_from_file(file: File) -> Vec<String> {
|
||||||
BufReader::new(file)
|
BufReader::new(file)
|
||||||
.lines()
|
.lines()
|
||||||
.into_iter()
|
|
||||||
.filter(|line| line.is_ok())
|
.filter(|line| line.is_ok())
|
||||||
.map(|line| line.unwrap())
|
.map(|line| line.unwrap())
|
||||||
.collect()
|
.collect()
|
||||||
|
|
|
@ -147,11 +147,11 @@ impl RebuildTagger {
|
||||||
|
|
||||||
self.selected =
|
self.selected =
|
||||||
vec![
|
vec![
|
||||||
String::from(format!("10.rebuild-linux: {}", self.bucket(counter_linux))),
|
format!("10.rebuild-linux: {}", self.bucket(counter_linux)),
|
||||||
String::from(format!(
|
format!(
|
||||||
"10.rebuild-darwin: {}",
|
"10.rebuild-darwin: {}",
|
||||||
self.bucket(counter_darwin)
|
self.bucket(counter_darwin)
|
||||||
)),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
for tag in &self.selected {
|
for tag in &self.selected {
|
||||||
|
|
Loading…
Reference in a new issue