summaryrefslogtreecommitdiff
path: root/core/async_cancel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/async_cancel.rs')
-rw-r--r--core/async_cancel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/async_cancel.rs b/core/async_cancel.rs
index 55ab8f4d1..11b07e189 100644
--- a/core/async_cancel.rs
+++ b/core/async_cancel.rs
@@ -219,7 +219,7 @@ mod internal {
// Do a cancellation check _before_ polling the inner future. If it has
// already been canceled the inner future will not be polled.
let node = match &*registration {
- Registration::WillRegister { head_node } => &*head_node,
+ Registration::WillRegister { head_node } => head_node,
Registration::Registered { node } => node,
};
if node.is_canceled() {