summaryrefslogtreecommitdiff
path: root/cli/lint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lint.rs')
-rw-r--r--cli/lint.rs4
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());
}
}
}