Skip to content

Commit a11d4ed

Browse files
committed
---
yaml --- r: 214713 b: refs/heads/beta c: d416fc1 h: refs/heads/master i: 214711: 026a0c3 v: v3
1 parent 6611f6e commit a11d4ed

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 04ab4a34719979d7f17b4c0df82ac8dbf08af1ad
26+
refs/heads/beta: d416fc1d40e39661153b2183726f7e71f51d24e3
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/libstd/sync/mpsc/spsc_queue.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ unsafe impl<T: Send> Sync for Queue<T> { }
8080

8181
impl<T> Node<T> {
8282
fn new() -> *mut Node<T> {
83-
unsafe {
84-
boxed::into_raw(box Node {
85-
value: None,
86-
next: AtomicPtr::new(ptr::null_mut::<Node<T>>()),
87-
})
88-
}
83+
boxed::into_raw(box Node {
84+
value: None,
85+
next: AtomicPtr::new(ptr::null_mut::<Node<T>>()),
86+
})
8987
}
9088
}
9189

0 commit comments

Comments
 (0)