Skip to content
Open
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
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ static LEVEL_PARSE_ERROR: &str =
/// [`log!`](macro.log.html), and comparing a `Level` directly to a
/// [`LevelFilter`](enum.LevelFilter.html).
#[repr(usize)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash, Default)]
pub enum Level {
/// The "error" level.
///
Expand All @@ -487,6 +487,7 @@ pub enum Level {
/// The "info" level.
///
/// Designates useful information.
#[default]
Info,
/// The "debug" level.
///
Expand Down Expand Up @@ -632,7 +633,7 @@ impl Level {
/// [`max_level()`]: fn.max_level.html
/// [`set_max_level`]: fn.set_max_level.html
#[repr(usize)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash, Default)]
pub enum LevelFilter {
/// A level lower than all log levels.
Off,
Expand All @@ -641,6 +642,7 @@ pub enum LevelFilter {
/// Corresponds to the `Warn` log level.
Warn,
/// Corresponds to the `Info` log level.
#[default]
Info,
/// Corresponds to the `Debug` log level.
Debug,
Expand Down