mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Don't clone where you can copy
This commit is contained in:
parent
09b8ee30ba
commit
4b2bf9cf66
1 changed files with 1 additions and 1 deletions
|
@ -17,6 +17,6 @@ impl Subscriptions {
|
||||||
self.subs.remove(&file_id);
|
self.subs.remove(&file_id);
|
||||||
}
|
}
|
||||||
pub(crate) fn subscriptions(&self) -> Vec<FileId> {
|
pub(crate) fn subscriptions(&self) -> Vec<FileId> {
|
||||||
self.subs.iter().cloned().collect()
|
self.subs.iter().copied().collect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue