diff options
author | KNnut <9387720+KNnut@users.noreply.github.com> | 2020-11-09 22:38:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 15:38:29 +0100 |
commit | aaf7166a9d528636b11a2ad835238589bf650b6e (patch) | |
tree | ad209b2e48d0475a5ff65427ee3ca9a49c1c9851 /cli/lint.rs | |
parent | 8b7f5531ee1ccde897e87890e9aabc554fedb9dd (diff) |
refactor(cli): remove unnecessary format! calls (#8315)
Diffstat (limited to 'cli/lint.rs')
-rw-r--r-- | cli/lint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lint.rs b/cli/lint.rs index e95af58f2..ff63b693c 100644 --- a/cli/lint.rs +++ b/cli/lint.rs @@ -276,9 +276,9 @@ pub fn format_diagnostic( colors::red(&"^".repeat(line_len - range.start.col)) )); } else if range.end.line == i { - lines.push(format!("{}", colors::red(&"^".repeat(range.end.col)))); + lines.push(colors::red(&"^".repeat(range.end.col)).to_string()); } else if line_len != 0 { - lines.push(format!("{}", colors::red(&"^".repeat(line_len)))); + lines.push(colors::red(&"^".repeat(line_len)).to_string()); } } } |