mirror of
https://github.com/sharkdp/bat
synced 2026-08-09 19:51:48 +00:00
Fix clippy::needless_borrow warnings
This commit is contained in:
+1
-1
@@ -432,7 +432,7 @@ impl<'a> InteractivePrinter<'a> {
|
|||||||
.highlight_line(for_highlighting, highlighter_from_set.syntax_set)?;
|
.highlight_line(for_highlighting, highlighter_from_set.syntax_set)?;
|
||||||
|
|
||||||
if too_long {
|
if too_long {
|
||||||
highlighted_line[0].1 = &line;
|
highlighted_line[0].1 = line;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(highlighted_line)
|
Ok(highlighted_line)
|
||||||
|
|||||||
Reference in New Issue
Block a user