1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-14 17:08:37 +00:00

Fix clippy::needless_borrow warnings

This commit is contained in:
einfachIrgendwer0815 2025-01-30 18:20:25 +01:00
parent b009fee5ea
commit 3d442cdf98
No known key found for this signature in database
GPG Key ID: 58D55E5F117DA873

View File

@ -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)