tokio: re-export future/stream utils (#1387)

This commit is contained in:
Carl Lerche
2019-08-03 21:08:29 -07:00
committed by GitHub
parent 0bb015588a
commit 337646b97f
7 changed files with 28 additions and 23 deletions
+4 -4
View File
@@ -9,15 +9,15 @@
#![feature(async_await)]
#![deny(warnings, rust_2018_idioms)]
use tokio::io;
use tokio::net::UdpSocket;
use tokio::prelude::*;
use std::env;
use std::error::Error;
use std::net::SocketAddr;
use std::time::Duration;
use tokio::io;
use tokio::net::UdpSocket;
use tokio::util::FutureExt;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let _ = env_logger::init();