about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>2021-12-09 21:21:37 +0100
committerGitHub <noreply@github.com>2021-12-09 21:21:37 +0100
commite277a987585f7e841b2b2c38f9f90fe5defda828 (patch)
tree824ecf45694dc69ccef5a1fc376468bee0a1f938
parent07bcf4aad3774e8b796a0a2b0141784ede3eb88a (diff)
downloadrust-e277a987585f7e841b2b2c38f9f90fe5defda828.tar.gz
rust-e277a987585f7e841b2b2c38f9f90fe5defda828.zip
Fix missing `mut` typo
Co-authored-by: Ibraheem Ahmed <ibrah1440@gmail.com>
-rw-r--r--library/core/src/future/join.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/future/join.rs b/library/core/src/future/join.rs
index 2d27b8edfd8..a6ffbe07d91 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.