We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4a66b3 commit fc2076cCopy full SHA for fc2076c
src/server/acceptor.rs
@@ -1,4 +1,4 @@
1
-use std::thread::{Thread, JoinGuard};
+use std::thread::{self, JoinGuard};
2
use std::sync::Arc;
3
use std::sync::mpsc;
4
use net::NetworkAcceptor;
@@ -34,7 +34,7 @@ impl<A: NetworkAcceptor + 'static> AcceptorPool<A> {
34
for _ in 0..threads { spawn() }
35
36
// Spawn the supervisor
37
- Thread::scoped(move || for () in supervisor_rx.iter() { spawn() })
+ thread::scoped(move || for () in supervisor_rx.iter() { spawn() })
38
}
39
40
@@ -43,7 +43,7 @@ where A: NetworkAcceptor + 'static,
43
F: Fn(<A as NetworkAcceptor>::Stream) + Send + Sync + 'static {
44
use std::old_io::EndOfFile;
45
46
- Thread::spawn(move || {
+ thread::spawn(move || {
47
let sentinel = Sentinel::new(supervisor, ());
48
49
loop {
0 commit comments