mirror of
https://github.com/uutils/procps.git
synced 2026-06-10 16:14:00 -07:00
clippy: fix warning from manual_repeat_n lint
This commit is contained in:
@@ -154,7 +154,7 @@ where
|
||||
input.chars().take(width).collect()
|
||||
} else {
|
||||
let mut result = String::from(&input);
|
||||
result.extend(std::iter::repeat(' ').take(width - input.len()));
|
||||
result.extend(std::iter::repeat_n(' ', width - input.len()));
|
||||
result
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user