Skip to content

Commit

Permalink
Merge #584
Browse files Browse the repository at this point in the history
584: Make SegQueue::new a const fn r=taiki-e a=coolreader18



Co-authored-by: Noah <[email protected]>
  • Loading branch information
bors[bot] and coolreader18 authored Oct 14, 2020
2 parents 5350103 + 25d2d43 commit e8a2e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crossbeam-queue/src/seg_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<T> SegQueue<T> {
///
/// let q = SegQueue::<i32>::new();
/// ```
pub fn new() -> SegQueue<T> {
pub const fn new() -> SegQueue<T> {
SegQueue {
head: CachePadded::new(Position {
block: AtomicPtr::new(ptr::null_mut()),
Expand Down

0 comments on commit e8a2e83

Please sign in to comment.