aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-03-31 21:21:03 +0100
committerveetaha <[email protected]>2020-04-02 19:07:05 +0100
commit4b2bf9cf66ecfc0bca0d1405ceb0d6eb923b78e2 (patch)
tree9e95724ac3c68149a41ebf3beab110303e10f09f
parent09b8ee30bab7040ec983968aaca90814029f4dc0 (diff)
Don't clone where you can copy
-rw-r--r--crates/rust-analyzer/src/main_loop/subscriptions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop/subscriptions.rs b/crates/rust-analyzer/src/main_loop/subscriptions.rs
index bee6437cf..2c76418be 100644
--- a/crates/rust-analyzer/src/main_loop/subscriptions.rs
+++ b/crates/rust-analyzer/src/main_loop/subscriptions.rs
@@ -17,6 +17,6 @@ impl Subscriptions {
17 self.subs.remove(&file_id); 17 self.subs.remove(&file_id);
18 } 18 }
19 pub(crate) fn subscriptions(&self) -> Vec<FileId> { 19 pub(crate) fn subscriptions(&self) -> Vec<FileId> {
20 self.subs.iter().cloned().collect() 20 self.subs.iter().copied().collect()
21 } 21 }
22} 22}