Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Detegr committed May 20, 2023
1 parent 7a23454 commit c6dace4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
//!
//! # Example
//! ```no_run
//! # #[allow(clippy::needless_doctest_main)]
//! use std::sync::atomic::{AtomicBool, Ordering};
//! use std::sync::Arc;
//!
Expand Down Expand Up @@ -87,7 +88,7 @@ static INIT: AtomicBool = AtomicBool::new(false);
///
pub fn set_handler<F>(mut user_handler: F) -> Result<(), Error>
where
F: FnMut() -> () + 'static + Send,
F: FnMut() + 'static + Send,
{
if INIT
.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst)
Expand Down

0 comments on commit c6dace4

Please sign in to comment.