From c59f90d01f06f995e335c6de76aab0b9ba2c98e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 4 Dec 2021 14:19:06 +0100 Subject: chore: upgrade to Rust 1.57.0 (#12968) --- core/async_cancel.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/async_cancel.rs') 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, + _weak_pin: Weak, }, /// 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) -> 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 { -- cgit v1.2.3