From 3d442cdf98bd0ac12e91d541d82b4807b7678024 Mon Sep 17 00:00:00 2001 From: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> Date: Thu, 30 Jan 2025 18:20:25 +0100 Subject: [PATCH] Fix `clippy::needless_borrow` warnings --- src/printer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer.rs b/src/printer.rs index 95017188..ab00a66e 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -432,7 +432,7 @@ impl<'a> InteractivePrinter<'a> { .highlight_line(for_highlighting, highlighter_from_set.syntax_set)?; if too_long { - highlighted_line[0].1 = &line; + highlighted_line[0].1 = line; } Ok(highlighted_line)