1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-30 09:02:22 +01:00

chore: address all cargo clippy lints

* also do a bit of a doc cleanup for the `load_from_folder` fn
This commit is contained in:
Yuri Astrakhan
2025-08-18 20:06:01 -04:00
committed by Martin Nordholts
parent d9fbd18541
commit 503c50b1ec
6 changed files with 25 additions and 22 deletions

View File

@@ -399,7 +399,7 @@ impl<'a> InteractivePrinter<'a> {
while content_graphemes.len() > content_width {
let (content_line, remaining) = content_graphemes.split_at(content_width);
self.print_header_component_with_indent(handle, content_line.join("").as_str())?;
content_graphemes = remaining.iter().cloned().collect();
content_graphemes = remaining.to_vec();
}
self.print_header_component_with_indent(handle, content_graphemes.join("").as_str())
}