Skip to content

Commit 1797386

Browse files
Aaron SchweigerAaron Schweiger
authored andcommitted
fix returning the result of a binding from a block
1 parent 537b964 commit 1797386

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tokio/src/sync/mpsc/list.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,7 @@ impl<T> Rx<T> {
262262
unsafe {
263263
let block = self.head.as_ref();
264264

265-
let ret = block.read(self.index);
266-
267-
ret
265+
block.read(self.index)
268266
}
269267
}
270268

0 commit comments

Comments
 (0)