From c290bfff1eb9ea49538b63f43bb1dded44d52ad1 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sun, 10 Mar 2024 03:03:18 -0700 Subject: [PATCH] refactor: remove reference that is unnecessary --- src/printer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer.rs b/src/printer.rs index 8dbe9d0b..959ca8f6 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -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