Skip to content

Commit

Permalink
Allow clippy lint for newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Oct 1, 2024
1 parent 742540d commit a280ba5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion async-stream/src/yielder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ pub unsafe fn pair<T>() -> (Sender<T>, Receiver<T>) {
// Tracks the pointer to `Option<T>`.
//
// TODO: Ensure wakers match?
thread_local!(static STORE: Cell<*mut ()> = Cell::new(ptr::null_mut()));
thread_local! {
#[allow(clippy::missing_const_for_thread_local)]
static STORE: Cell<*mut ()> = Cell::new(ptr::null_mut())
}

// ===== impl Sender =====

Expand Down

0 comments on commit a280ba5

Please sign in to comment.