Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
toffaletti authored and brson committed Oct 26, 2013
1 parent 1916732 commit 8c95f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/rt/mpsc_queue.rs
Expand Up @@ -93,7 +93,7 @@ impl<T: Send> State<T> {
}

fn get_stub_unsafe(&mut self) -> *mut Node<T> {
unsafe { to_mut_unsafe_ptr(&mut self.stub) }
to_mut_unsafe_ptr(&mut self.stub)
}

fn push(&mut self, value: T) {
Expand Down Expand Up @@ -148,7 +148,7 @@ impl<T: Send> State<T> {
impl<T: Send> Queue<T> {
pub fn new() -> Queue<T> {
unsafe {
let mut q = Queue{state: UnsafeArc::new(State::new())};
let q = Queue{state: UnsafeArc::new(State::new())};
(*q.state.get()).init();
q
}
Expand Down

0 comments on commit 8c95f55

Please sign in to comment.