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 17ee9e8 commit 3832f5a
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
Expand Up @@ -141,7 +141,6 @@ impl<T> Queue<T> {
.compare_and_set(head, next, Release, guard)
.map(|_| {
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
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 3832f5a

Please sign in to comment.