Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/highlights.rs')
| -rw-r--r-- | crates/ide/src/syntax_highlighting/highlights.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting/highlights.rs b/crates/ide/src/syntax_highlighting/highlights.rs index 882a685a56..340290eafe 100644 --- a/crates/ide/src/syntax_highlighting/highlights.rs +++ b/crates/ide/src/syntax_highlighting/highlights.rs @@ -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 |