From e277a987585f7e841b2b2c38f9f90fe5defda828 Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Thu, 9 Dec 2021 21:21:37 +0100 Subject: [PATCH] Fix missing `mut` typo Co-authored-by: Ibraheem Ahmed --- library/core/src/future/join.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/future/join.rs b/library/core/src/future/join.rs index 2d27b8edfd800..a6ffbe07d91b0 100644 --- a/library/core/src/future/join.rs +++ b/library/core/src/future/join.rs @@ -106,7 +106,7 @@ macro join_internal { match ( $( MaybeDone::Future($fut_expr), )* ) { futures => async { let mut futures = futures; // SAFETY: this is `pin_mut!`. - let futures = unsafe { Pin::new_unchecked(&mut futures) }; + let mut futures = unsafe { Pin::new_unchecked(&mut futures) }; poll_fn(move |cx| { let mut done = true; // For each `fut`, pin-project to it, and poll it.