mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-15 01:18:31 +00:00
Fix clippy::needless_borrow
warnings
This commit is contained in:
parent
b009fee5ea
commit
3d442cdf98
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user