clippy::manual_str_repeat

This commit is contained in:
Maan2003
2021-06-13 09:37:28 +05:30
parent c50b4579ec
commit b857a5dcf0
2 changed files with 3 additions and 3 deletions

View File

@@ -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)