clippy: useless use of vec[]

This commit is contained in:
Graham Christensen 2019-01-02 17:37:17 -05:00
parent 99159dd74e
commit 48d2815c1a
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -71,8 +71,8 @@ impl<E: stats::SysEvents> MassRebuildWorker<E> {
if darwin {
update_labels(
&issue,
&vec![String::from("6.topic: darwin")],
&vec![],
&[String::from("6.topic: darwin")],
&[],
);
}
}
@ -272,16 +272,16 @@ impl<E: stats::SysEvents + 'static> worker::SimpleWorker for MassRebuildWorker<E
update_labels(
&issue,
&vec!["2.status: merge conflict".to_owned()],
&vec![],
&["2.status: merge conflict".to_owned()],
&[],
);
return self.actions().skip(&job);
} else {
update_labels(
&issue,
&vec![],
&vec!["2.status: merge conflict".to_owned()],
&[],
&["2.status: merge conflict".to_owned()],
);
}