Skip to content

Commit 8c95f55

Browse files
toffalettibrson
authored andcommitted
minor
1 parent 1916732 commit 8c95f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/mpsc_queue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl<T: Send> State<T> {
9393
}
9494

9595
fn get_stub_unsafe(&mut self) -> *mut Node<T> {
96-
unsafe { to_mut_unsafe_ptr(&mut self.stub) }
96+
to_mut_unsafe_ptr(&mut self.stub)
9797
}
9898

9999
fn push(&mut self, value: T) {
@@ -148,7 +148,7 @@ impl<T: Send> State<T> {
148148
impl<T: Send> Queue<T> {
149149
pub fn new() -> Queue<T> {
150150
unsafe {
151-
let mut q = Queue{state: UnsafeArc::new(State::new())};
151+
let q = Queue{state: UnsafeArc::new(State::new())};
152152
(*q.state.get()).init();
153153
q
154154
}

0 commit comments

Comments
 (0)