summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2022-07-11 23:37:09 -0700
committerJosh Triplett <josh@joshtriplett.org>2022-07-11 23:37:09 -0700
commit18813fbdd10434d90b6a19d7f4067be11866e4b1 (patch)
tree0d70ed942f6e0ae07f16a3943ff4756319553b8d
parentb01a39a237c65438849124bcf1d6d7e73b0edcb4 (diff)
downloadrust-libc-18813fbdd10434d90b6a19d7f4067be11866e4b1.tar.gz
style: Format errors so that editors can jump to file/line
With this change, it's now possible to do: ``` ./style src > e vim -q e ```
-rw-r--r--ci/style.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/style.rs b/ci/style.rs
index e21a40cf1d..07b2a754bc 100644
--- a/ci/style.rs
+++ b/ci/style.rs
@@ -196,6 +196,6 @@ impl State {
impl Errors {
fn error(&mut self, path: &Path, line: usize, msg: &str) {
self.errs = true;
- println!("{}:{} - {}", path.display(), line + 1, msg);
+ println!("{}:{}: {}", path.display(), line + 1, msg);
}
}