Skip to content

Commit a86b3b6

Browse files
committed
Cleanup some things (Removed stale comment and add semicolon to express statement)
1 parent b5525b7 commit a86b3b6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

crossbeam-epoch/src/sync/queue.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ impl<T> Queue<T> {
154154
let _ = self.tail.compare_and_set(tail, next, Release, guard);
155155
}
156156
guard.defer_destroy(head);
157-
// TODO: Replace with MaybeUninit::read when api is stable
158157
Some(n.data.as_ptr().read())
159158
})
160159
.map_err(|_| ())

crossbeam-queue/src/array_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl<T> ArrayQueue<T> {
188188
) {
189189
Ok(_) => {
190190
// Write the value into the slot and update the stamp.
191-
unsafe { slot.value.get().write(MaybeUninit::new(value)) }
191+
unsafe { slot.value.get().write(MaybeUninit::new(value)); }
192192
slot.stamp.store(tail + 1, Ordering::Release);
193193
return Ok(());
194194
}

0 commit comments

Comments
 (0)