diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-08-26 20:43:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 20:43:24 +0200 |
commit | 4a0bc747dd043e6f02e744dd1bb256ac9027c7c0 (patch) | |
tree | a405f9f758d5933068f8caacda11ebc07472f150 /cli/lint.rs | |
parent | 80111e57e61c22a3cb5b3d17136bface9e6f931b (diff) |
upgrade: swc, deno_doc, deno_lint, dprint (#7194)
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); } |