forked from the-distro/ofborg
clippy: map .clone -> cloned
This commit is contained in:
parent
a9e2c02c8c
commit
0ab2ce45cf
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue