diff options
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 4e12d582c..ec5ee7ba8 100644 --- a/cli/lint.rs +++ b/cli/lint.rs @@ -225,7 +225,7 @@ impl LintReporter for PrettyLintReporter { Some(d.location.col as i64), Some((d.location.col + d.snippet_length) as i64), &[fmt_errors::format_location( - &d.location.filename, + &d.filename, d.location.line as i64, d.location.col as i64, )], @@ -288,5 +288,5 @@ impl LintReporter for JsonLintReporter { pub fn get_sort_key(a: &LintDiagnostic) -> String { let location = &a.location; - return format!("{}:{}:{}", location.filename, location.line, location.col); + return format!("{}:{}:{}", a.filename, location.line, location.col); } |