Skip to content

Commit

Permalink
fix another Arc mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailBag committed Sep 26, 2020
1 parent 8263b0f commit 744ff6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/mpsc/chan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ impl Semaphore for (crate::sync::batch_semaphore::Semaphore, usize) {
fn wake(self: std::sync::Arc<Self>) {}
fn wake_by_ref(_arc_self: &std::sync::Arc<Self>) {}
}
let waker = Arc::new(NoopWaker);
let waker = std::sync::Arc::new(NoopWaker);
let waker = crate::util::waker_ref(&waker);
let mut noop_cx = std::task::Context::from_waker(&*waker);
let mut permit = Permit::new();
Expand Down

0 comments on commit 744ff6f

Please sign in to comment.