1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-29 18:01:43 +00:00

Use deref coercion to simplify some argument passing

This commit is contained in:
Marcin Puc
2021-09-10 21:58:46 +02:00
committed by Martin Nordholts
parent 7956485e37
commit 4baa346aae
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ impl<'a> Printer for InteractivePrinter<'a> {
return Ok(());
}
};
highlighter.highlight(line.as_ref(), self.syntax_set)
highlighter.highlight(&line, self.syntax_set)
};
if out_of_range {