clippy: map .clone -> cloned

This commit is contained in:
Graham Christensen 2019-01-02 17:53:26 -05:00
parent a9e2c02c8c
commit 0ab2ce45cf
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -638,7 +638,7 @@ pub fn update_labels(issue: &hubcaps::issues::IssueRef, add: &[String], remove:
let to_remove: Vec<String> = remove
.iter()
.filter(|l| existing.contains(l)) // Remove labels already on the issue
.map(|l| l.clone())
.cloned()
.collect();
info!("Removing labels: {:?}", to_remove);