Skip to content

Commit 809638a

Browse files
committed
fix severity order, update changelog
1 parent 5909730 commit 809638a

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

codespan-reporting/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Add the option to display a configurable amount of lines in front of and after any label.
13+
- The `Severity` enum now implements full `Ord`. (#335)
1314

1415
### Changed
1516

codespan-reporting/src/diagnostic.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ use std::string::ToString;
2020
#[derive(Copy, Clone, Hash, Debug, PartialEq, Eq, PartialOrd, Ord)]
2121
#[cfg_attr(feature = "serialization", derive(Serialize, Deserialize))]
2222
pub enum Severity {
23-
/// An unexpected bug.
24-
Bug,
25-
/// An error.
26-
Error,
27-
/// A warning.
28-
Warning,
29-
/// A note.
30-
Note,
3123
/// A help message.
3224
Help,
25+
/// A note.
26+
Note,
27+
/// A warning.
28+
Warning,
29+
/// An error.
30+
Error,
31+
/// An unexpected bug.
32+
Bug,
3333
}
3434

3535
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd)]

0 commit comments

Comments
 (0)