Skip to content

Commit

Permalink
#[allow(clippy::new_without_default)] for Once (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkragl authored May 14, 2024
1 parent 623c3b5 commit fa007fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ impl std::fmt::Debug for OnceInitState {

impl Once {
/// Creates a new `Once` value.
#[must_use]
#[allow(clippy::new_without_default)]
pub const fn new() -> Self {
Self { _dummy: 0 }
}
Expand Down

0 comments on commit fa007fb

Please sign in to comment.