summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHamir Mahal <hamirmahal@gmail.com>2024-03-10 03:03:18 -0700
committerMartin Nordholts <enselic@gmail.com>2024-03-10 11:17:02 +0100
commitc290bfff1eb9ea49538b63f43bb1dded44d52ad1 (patch)
tree4deb923126c73f5872675bcb948c018d1508adba
parent42153f2b9997cd514f8984c96a72927fda95e6db (diff)
refactor: remove reference that is unnecessary
-rw-r--r--src/printer.rs2
1 files changed, 1 insertions, 1 deletions
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