Skip to content

Commit 584d8d0

Browse files
authored
Merge pull request #92 from autozimu/ord
Derive Ord and PartialOrd for DiagnosticSeverity.
2 parents ef8e2bd + 9b5e277 commit 584d8d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl Diagnostic {
204204
}
205205

206206
/// The protocol currently supports the following diagnostic severities:
207-
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
207+
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Clone, Copy)]
208208
pub enum DiagnosticSeverity {
209209
/// Reports an error.
210210
Error = 1,

0 commit comments

Comments
 (0)