1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-03-15 15:18:45 +00:00

refactor: remove reference that is unnecessary

This commit is contained in:
Hamir Mahal 2024-03-10 03:03:18 -07:00
parent 42153f2b99
commit dbe163200e
No known key found for this signature in database

View File

@ -398,7 +398,7 @@ impl<'a> InteractivePrinter<'a> {
// skip syntax highlighting on long lines // skip syntax highlighting on long lines
let too_long = line.len() > 1024 * 16; let too_long = line.len() > 1024 * 16;
let for_highlighting: &str = if too_long { "\n" } else { &line }; let for_highlighting: &str = if too_long { "\n" } else { line };
let mut highlighted_line = highlighter_from_set let mut highlighted_line = highlighter_from_set
.highlighter .highlighter