Skip to content

Commit

Permalink
Cleanup some things (Removed stale comment and add semicolon to expre…
Browse files Browse the repository at this point in the history
…ss statement)
  • Loading branch information
cynecx committed Feb 10, 2020
1 parent b5525b7 commit a86b3b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion crossbeam-epoch/src/sync/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ impl<T> Queue<T> {
let _ = self.tail.compare_and_set(tail, next, Release, guard);
}
guard.defer_destroy(head);
// TODO: Replace with MaybeUninit::read when api is stable
Some(n.data.as_ptr().read())
})
.map_err(|_| ())
Expand Down
2 changes: 1 addition & 1 deletion crossbeam-queue/src/array_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl<T> ArrayQueue<T> {
) {
Ok(_) => {
// Write the value into the slot and update the stamp.
unsafe { slot.value.get().write(MaybeUninit::new(value)) }
unsafe { slot.value.get().write(MaybeUninit::new(value)); }
slot.stamp.store(tail + 1, Ordering::Release);
return Ok(());
}
Expand Down

0 comments on commit a86b3b6

Please sign in to comment.