Skip to content

Commit

Permalink
fix(ThingBuf): fix wrong increment in pop
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <[email protected]>
  • Loading branch information
hawkw committed Nov 12, 2021
1 parent 3a8a13c commit 0e53279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl<T> ThingBuf<T> {
) {
Ok(_) => {
return Some(Ref {
new_state: head + 1,
new_state: head.wrapping_add(self.gen),
slot,
})
}
Expand Down

0 comments on commit 0e53279

Please sign in to comment.