fix(rustup): update to latest rustc
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#![feature(core, collections, io, net, os, path,
|
||||
#![feature(core, collections, io, net,
|
||||
std_misc, box_syntax, unsafe_destructor)]
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(test, deny(warnings))]
|
||||
@@ -133,6 +133,7 @@ extern crate openssl;
|
||||
extern crate cookie;
|
||||
extern crate unicase;
|
||||
extern crate httparse;
|
||||
extern crate num_cpus;
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user