Skip to content

Commit

Permalink
fix(rustup): use module-level thread functions
Browse files Browse the repository at this point in the history
  • Loading branch information
renato-zannon authored and seanmonstar committed Feb 21, 2015
1 parent f4a66b3 commit fc2076c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/acceptor.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::thread::{Thread, JoinGuard};
use std::thread::{self, JoinGuard};
use std::sync::Arc;
use std::sync::mpsc;
use net::NetworkAcceptor;
Expand Down Expand Up @@ -34,7 +34,7 @@ impl<A: NetworkAcceptor + 'static> AcceptorPool<A> {
for _ in 0..threads { spawn() }

// Spawn the supervisor
Thread::scoped(move || for () in supervisor_rx.iter() { spawn() })
thread::scoped(move || for () in supervisor_rx.iter() { spawn() })
}
}

Expand All @@ -43,7 +43,7 @@ where A: NetworkAcceptor + 'static,
F: Fn(<A as NetworkAcceptor>::Stream) + Send + Sync + 'static {
use std::old_io::EndOfFile;

Thread::spawn(move || {
thread::spawn(move || {
let sentinel = Sentinel::new(supervisor, ());

loop {
Expand Down

0 comments on commit fc2076c

Please sign in to comment.