mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -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) {
|
fn close(&mut self) {
|
||||||
// Sort so that we guarantee a deterministic output which is useful for tests
|
// Sort so that we guarantee a deterministic output which is useful for tests
|
||||||
self
|
self.diagnostics.sort_by_key(|key| get_sort_key(&key));
|
||||||
.diagnostics
|
|
||||||
.sort_by(|a, b| get_sort_key(&a).cmp(&get_sort_key(&b)));
|
|
||||||
|
|
||||||
let json = serde_json::to_string_pretty(&self);
|
let json = serde_json::to_string_pretty(&self);
|
||||||
eprintln!("{}", json.unwrap());
|
eprintln!("{}", json.unwrap());
|
||||||
|
|
Loading…
Add table
Reference in a new issue