Skip to content

Commit

Permalink
Format with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 26, 2021
1 parent e1d6460 commit 1059cf1
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 1059cf1

Please sign in to comment.