Don't clone where you can copy

This commit is contained in:
veetaha 2020-03-31 23:21:03 +03:00
parent 09b8ee30ba
commit 4b2bf9cf66

View file

@ -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()
} }
} }