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

Merge pull request #2502 from Enselic/clippy-1.68

Fix clippy warnings with Rust 1.68
This commit is contained in:
David Peter
2023-03-15 08:36:28 +01:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,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()];