Skip to content

Commit

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

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

Expand Down

0 comments on commit 891daed

Please sign in to comment.