]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide/src/syntax_highlighting/highlights.rs
Code blocks with tilde also works like code block
[rust.git] / crates / ide / src / syntax_highlighting / highlights.rs
index 882a685a567be4f15a93708646f331753f7c3421..340290eafedbe088c6d5902c0cd96c7a7a33bcbe 100644 (file)
@@ -26,7 +26,7 @@ pub(super) fn add(&mut self, hl_range: HlRange) {
         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