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