diff options
Diffstat (limited to 'cli/diagnostics.rs')
-rw-r--r-- | cli/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/diagnostics.rs b/cli/diagnostics.rs index 9d1faa6b1..f2c78d5c4 100644 --- a/cli/diagnostics.rs +++ b/cli/diagnostics.rs @@ -189,7 +189,7 @@ impl DiagnosticMessageChain { pub fn format_message(&self, level: usize) -> String { let mut s = String::new(); - s.push_str(&std::iter::repeat(" ").take(level * 2).collect::<String>()); + s.push_str(&" ".repeat(level * 2)); s.push_str(&self.message_text); if let Some(next) = &self.next { s.push('\n'); |