From 1797386490853418b6872de5f2bb71cbb34ff194 Mon Sep 17 00:00:00 2001 From: Aaron Schweiger Date: Fri, 15 Sep 2023 18:58:16 -0400 Subject: [PATCH] fix returning the result of a binding from a block --- tokio/src/sync/mpsc/list.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tokio/src/sync/mpsc/list.rs b/tokio/src/sync/mpsc/list.rs index 7869db82fc1..9cb15517304 100644 --- a/tokio/src/sync/mpsc/list.rs +++ b/tokio/src/sync/mpsc/list.rs @@ -262,9 +262,7 @@ impl Rx { unsafe { let block = self.head.as_ref(); - let ret = block.read(self.index); - - ret + block.read(self.index) } }