summaryrefslogtreecommitdiff
path: root/core/async_cancel.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-12-04 14:19:06 +0100
committerGitHub <noreply@github.com>2021-12-04 14:19:06 +0100
commitc59f90d01f06f995e335c6de76aab0b9ba2c98e5 (patch)
tree760bc0534fca502175749d9a7b719c0666f90543 /core/async_cancel.rs
parent72e9720e91630bdf28b1660c20c67baa39bdb586 (diff)
chore: upgrade to Rust 1.57.0 (#12968)
Diffstat (limited to 'core/async_cancel.rs')
-rw-r--r--core/async_cancel.rs6
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 {