Skip to content

Commit 4912fda

Browse files
committed
Fix broken compile after merging master
1 parent 8012163 commit 4912fda

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: src/sync/condvar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ impl<'a, 'b, T> Future for AwaitNotify<'a, 'b, T> {
384384
}
385385
None => {
386386
if let Some(key) = self.key {
387-
if self.cond.wakers.complete_if_notified(key, cx) {
387+
if self.cond.wakers.remove_if_notified(key, cx) {
388388
self.key = None;
389389
Poll::Ready(())
390390
} else {

Diff for: src/sync/waker_set.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ impl WakerSet {
8484
/// the waker for the entry, and return false. If the waker has been notified,
8585
/// treat the entry as completed and return true.
8686
#[cfg(feature = "unstable")]
87-
pub fn complete_if_notified(&self, key: usize, cx: &Context<'_>) -> bool {
87+
pub fn remove_if_notified(&self, key: usize, cx: &Context<'_>) -> bool {
8888
let mut inner = self.lock();
8989

9090
match &mut inner.entries[key] {
9191
None => {
9292
inner.entries.remove(key);
93-
inner.none_count -= 1;
9493
true
9594
}
9695
Some(w) => {

0 commit comments

Comments
 (0)