mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
Update Tokio to Rust 2018 (#1082)
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
extern crate tokio_threadpool;
|
||||
|
||||
extern crate env_logger;
|
||||
extern crate futures;
|
||||
extern crate rand;
|
||||
|
||||
use tokio_threadpool::*;
|
||||
#![deny(warnings, rust_2018_idioms)]
|
||||
|
||||
use futures::future::{lazy, poll_fn};
|
||||
use futures::*;
|
||||
use rand::*;
|
||||
|
||||
use std::sync::atomic::Ordering::*;
|
||||
use std::sync::atomic::*;
|
||||
use std::sync::*;
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
use tokio_threadpool::*;
|
||||
|
||||
#[test]
|
||||
fn basic() {
|
||||
|
||||
Reference in New Issue
Block a user