mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
chore: nightly clippy refactor in lint.rs (#7045)
This commit is contained in:
parent
b38c313276
commit
27d8969847
1 changed files with 1 additions and 3 deletions
|
@ -278,9 +278,7 @@ impl LintReporter for JsonLintReporter {
|
|||
|
||||
fn close(&mut self) {
|
||||
// Sort so that we guarantee a deterministic output which is useful for tests
|
||||
self
|
||||
.diagnostics
|
||||
.sort_by(|a, b| get_sort_key(&a).cmp(&get_sort_key(&b)));
|
||||
self.diagnostics.sort_by_key(|key| get_sort_key(&key));
|
||||
|
||||
let json = serde_json::to_string_pretty(&self);
|
||||
eprintln!("{}", json.unwrap());
|
||||
|
|
Loading…
Reference in a new issue