Skip to content

Commit 6cae78c

Browse files
committed
Don't clone where you can copy
1 parent 611adc8 commit 6cae78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/main_loop/subscriptions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ impl Subscriptions {
1717
self.subs.remove(&file_id);
1818
}
1919
pub(crate) fn subscriptions(&self) -> Vec<FileId> {
20-
self.subs.iter().cloned().collect()
20+
self.subs.iter().copied().collect()
2121
}
2222
}

0 commit comments

Comments
 (0)