mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
more clippy fixes
This commit is contained in:
parent
3c468ab2fc
commit
35e5daacc3
19 changed files with 46 additions and 52 deletions
|
@ -26,7 +26,7 @@ impl Highlights {
|
|||
self.root.add(hl_range);
|
||||
}
|
||||
|
||||
pub(super) fn to_vec(self) -> Vec<HlRange> {
|
||||
pub(super) fn to_vec(&self) -> Vec<HlRange> {
|
||||
let mut res = Vec::new();
|
||||
self.root.flatten(&mut res);
|
||||
res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue