Skip to content

Commit

Permalink
feat(protocol): implement Ord for Severity (#240)
Browse files Browse the repository at this point in the history
Fixes: #239
  • Loading branch information
ErichDonGubler committed Mar 1, 2023
1 parent 3497508 commit ed486c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ impl From<Box<dyn std::error::Error + Send + Sync>> for Box<dyn Diagnostic + Sen
[`ReportHandler`](crate::ReportHandler)s to change the way different
[`Diagnostic`]s are displayed.
*/
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[derive(Copy, Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub enum Severity {
/// Critical failure. The program cannot continue.
Error,
/// Warning. Please take note.
Warning,
/// Just some help. Here's how you could be doing it better.
Advice,
/// Warning. Please take note.
Warning,
/// Critical failure. The program cannot continue.
Error,
}

/**
Expand Down

0 comments on commit ed486c9

Please sign in to comment.