convert feature is already stablized

This commit is contained in:
Y. T. Chung
2016-01-23 11:42:11 +08:00
parent 7bdae15ebf
commit eb519f9c24
3 changed files with 3 additions and 3 deletions

View File

@@ -232,7 +232,7 @@ fn main() {
Scheduler::spawn(move|| {
loop {
coio::sleep(Duration::from_secs(5));
debug!("Running coroutines: {}", Scheduler::instance().work_count());
debug!("Running coroutines: {}", Scheduler::instance().map(|s| s.work_count()).unwrap());
}
});
}

View File

@@ -215,7 +215,7 @@ fn main() {
Scheduler::spawn(move|| {
loop {
coio::sleep(Duration::from_secs(5));
debug!("Running coroutines: {}", Scheduler::instance().work_count());
debug!("Running coroutines: {}", Scheduler::instance().map(|s| s.work_count()).unwrap());
}
});
}

View File

@@ -22,7 +22,7 @@
#![crate_type = "lib"]
#![crate_name = "shadowsocks"]
#![feature(box_syntax, libc, test, slice_patterns, lookup_host, convert)]
#![feature(box_syntax, libc, test, slice_patterns, lookup_host)]
extern crate rustc_serialize as serialize;
#[macro_use]