mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Don't clone where you can copy
This commit is contained in:
@@ -17,6 +17,6 @@ pub(crate) fn remove_sub(&mut self, file_id: FileId) {
|
||||
self.subs.remove(&file_id);
|
||||
}
|
||||
pub(crate) fn subscriptions(&self) -> Vec<FileId> {
|
||||
self.subs.iter().cloned().collect()
|
||||
self.subs.iter().copied().collect()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user