Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions apps/oxlint/src/output_formatter/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,7 @@ mod test_implementation {

self.diagnostics.sort_by_cached_key(|diagnostic| {
let info = Info::new(diagnostic);
(
info.filename,
info.start.line,
info.start.column,
info.end.line,
info.end.column,
info.rule_id,
info.message,
)
(info.filename, info.start, info.end, info.rule_id, info.message)
});

for diagnostic in &self.diagnostics {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_diagnostics/src/reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub struct Info {
pub rule_id: Option<String>,
}

#[derive(Debug)]
#[derive(PartialEq, Eq, PartialOrd, Ord, Debug)]
pub struct InfoPosition {
pub line: usize,
pub column: usize,
Expand Down
Loading