Skip to content

Commit

Permalink
Merge #676
Browse files Browse the repository at this point in the history
676: Format with rustfmt r=taiki-e a=taiki-e



Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e committed Mar 26, 2021
2 parents e1d6460 + 1059cf1 commit b196663
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crossbeam-deque/src/deque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,9 @@ impl<T> Injector<T> {

// Destroy the block if we've reached the end, or if another thread wanted to destroy
// but couldn't because we were busy reading from the slot.
if (offset + 1 == BLOCK_CAP) || (slot.state.fetch_or(READ, Ordering::AcqRel) & DESTROY != 0) {
if (offset + 1 == BLOCK_CAP)
|| (slot.state.fetch_or(READ, Ordering::AcqRel) & DESTROY != 0)
{
Block::destroy(block, offset);
}

Expand Down

0 comments on commit b196663

Please sign in to comment.