fix(rustup): update to latest rustc

This commit is contained in:
Sean McArthur
2015-03-16 12:01:38 -07:00
parent 932baac171
commit 4fd8a6a9dc
8 changed files with 14 additions and 8 deletions

View File

@@ -2,10 +2,11 @@
use std::io::{BufReader, BufWriter};
use std::marker::PhantomData;
use std::net::{IpAddr, SocketAddr};
use std::os;
use std::path::Path;
use std::thread::{self, JoinGuard};
use num_cpus;
pub use self::request::Request;
pub use self::response::Response;
@@ -83,7 +84,7 @@ impl<'a, H: Handler + 'static> Server<'a, H, HttpListener> {
/// Binds to a socket and starts handling connections.
pub fn listen(self, ip: IpAddr, port: u16) -> HttpResult<Listening> {
self.listen_threads(ip, port, os::num_cpus() * 5 / 4)
self.listen_threads(ip, port, num_cpus::get() * 5 / 4)
}
}
impl<