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:
committed by
Martin Nordholts
parent
d9fbd18541
commit
503c50b1ec
@@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user