mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Fix clippy warnings with Rust 1.68
This commit is contained in:
1 parent
c5602f9766
commit
40a423905a
4 files changed
+6
-6
No files matched your search
+1
-1
@@ -20,7 +20,7 @@ pub fn expand_tabs(line: &str, width: usize, cursor: &mut usize) -> String {
|
||||
// Add tab.
|
||||
let spaces = width - (*cursor % width);
|
||||
*cursor += spaces;
|
||||
buffer.push_str(&*" ".repeat(spaces));
|
||||
buffer.push_str(&" ".repeat(spaces));
|
||||
|
||||
// Next.
|
||||
text = &text[index + 1..text.len()];
|
||||
|
||||
Reference in new issue
Block a user