mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
clippy::manual_str_repeat
This commit is contained in:
parent
c50b4579ec
commit
b857a5dcf0
2 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ impl fmt::Display for IndentLevel {
|
|||
let indent = if len <= spaces.len() {
|
||||
&spaces[..len]
|
||||
} else {
|
||||
buf = iter::repeat(' ').take(len).collect::<String>();
|
||||
buf = " ".repeat(len);
|
||||
&buf
|
||||
};
|
||||
fmt::Display::fmt(indent, f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue