mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-29 09:06:02 +00:00
Use deref coercion to simplify some argument passing
This commit is contained in:
1 parent
7956485e37
commit
4baa346aae
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user