Skip to content

Commit

Permalink
refactor: remove reference that is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal authored and Enselic committed Mar 10, 2024
1 parent 42153f2 commit c290bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ impl<'a> InteractivePrinter<'a> {
// skip syntax highlighting on long lines
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
.highlighter
Expand Down

0 comments on commit c290bff

Please sign in to comment.