Skip to content

Commit

Permalink
fix returning the result of a binding from a block
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Schweiger authored and Aaron Schweiger committed Sep 15, 2023
1 parent 537b964 commit 1797386
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tokio/src/sync/mpsc/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ impl<T> Rx<T> {
unsafe {
let block = self.head.as_ref();

let ret = block.read(self.index);

ret
block.read(self.index)
}
}

Expand Down

0 comments on commit 1797386

Please sign in to comment.