more clippy fixes

This commit is contained in:
Milo 2021-10-16 12:32:55 +01:00
parent 3c468ab2fc
commit 35e5daacc3
19 changed files with 46 additions and 52 deletions

View file

@ -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