Skip to content

Commit

Permalink
chore: Remove unnecessary clippy allow directives
Browse files Browse the repository at this point in the history
This commit removes the unnecessary `allow(clippy::exhaustive_structs)`
directives from the `ErrorLevel`, `WarnLevel`, and `InfoLevel` structs
as these are not triggered by the current clippy configuration.
  • Loading branch information
joshka committed Nov 16, 2024
1 parent 6e5fc6a commit e628191
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ pub trait LogLevel {
}

/// Default to [`log::Level::Error`]
#[allow(clippy::exhaustive_structs)]
#[derive(Copy, Clone, Debug, Default)]
pub struct ErrorLevel;

Expand All @@ -203,7 +202,6 @@ impl LogLevel for ErrorLevel {
}

/// Default to [`log::Level::Warn`]
#[allow(clippy::exhaustive_structs)]
#[derive(Copy, Clone, Debug, Default)]
pub struct WarnLevel;

Expand All @@ -214,7 +212,6 @@ impl LogLevel for WarnLevel {
}

/// Default to [`log::Level::Info`]
#[allow(clippy::exhaustive_structs)]
#[derive(Copy, Clone, Debug, Default)]
pub struct InfoLevel;

Expand Down

0 comments on commit e628191

Please sign in to comment.