Skip to content

Commit

Permalink
Fix inconsistent 'long' name for Level::Warning (#322)
Browse files Browse the repository at this point in the history
Thanks to @Jonathas-Conceicao for discovering this :)

This affects formatting, now rustfmt places the array brackets
on seperate lines (eye roll).

Fixes #282
  • Loading branch information
Techcable authored Sep 10, 2023
1 parent 141d90b commit 81764c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
* Fix `#` format when not used as a last argument.
* Implement `Value` for `std::borrow::Cow`
* Fix duplicate `AsRef<str>` implementations, fixing support for `dynamic-keys`
* Fix incorrect 'long' name for `slog::Level::Warning` (fixes issue #282)

## 2.7.0 - 2020-11-29

Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2090,8 +2090,9 @@ impl<D: Drain> Drain for std::sync::Mutex<D> {
/// Official capitalized logging (and logging filtering) level names
///
/// In order of `as_usize()`.
pub static LOG_LEVEL_NAMES: [&str; 7] =
["OFF", "CRITICAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"];
pub static LOG_LEVEL_NAMES: [&str; 7] = [
"OFF", "CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "TRACE",
];

/// Official capitalized logging (and logging filtering) short level names
///
Expand Down

0 comments on commit 81764c1

Please sign in to comment.