diff options
Diffstat (limited to 'core/async_cancel.rs')
-rw-r--r-- | core/async_cancel.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/async_cancel.rs b/core/async_cancel.rs index ab7ec2248..1cdddcdb5 100644 --- a/core/async_cancel.rs +++ b/core/async_cancel.rs @@ -511,7 +511,7 @@ mod internal { /// the heap allocation that contains the `CancelHandle`. Without this /// extra weak reference, `Rc::get_mut()` might succeed and allow the /// `CancelHandle` to be moved when it isn't safe to do so. - weak_pin: Weak<dyn Any>, + _weak_pin: Weak<dyn Any>, }, /// All item nodes in a chain are associated with a `Cancelable` head node. Item { @@ -523,8 +523,8 @@ mod internal { impl NodeKind { fn head(rc_pin: &Rc<dyn Any>) -> Self { - let weak_pin = Rc::downgrade(rc_pin); - Self::Head { weak_pin } + let _weak_pin = Rc::downgrade(rc_pin); + Self::Head { _weak_pin } } fn item(waker: &Waker) -> Self { |