From 13835b0a78edba7657df308549f8f0e7933f4c94 Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Wed, 14 Aug 2019 15:57:51 +0200 Subject: [PATCH] Formatting --- src/prelude.rs | 4 +++- src/time/mod.rs | 4 +++- src/time/timeout.rs | 4 +++- tests/task_local.rs | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/prelude.rs b/src/prelude.rs index 90df8e5..eabd92f 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -10,9 +10,11 @@ //! # #![feature(async_await)] //! # fn main() -> std::io::Result<()> { async_std::task::block_on(async { //! # -//! use async_std::{io, prelude::*}; //! use std::time::Duration; //! +//! use async_std::io; +//! use async_std::prelude::*; +//! //! let stdin = io::stdin(); //! let mut line = String::new(); //! let dur = Duration::from_secs(5); diff --git a/src/time/mod.rs b/src/time/mod.rs index 78a554a..f8f389c 100644 --- a/src/time/mod.rs +++ b/src/time/mod.rs @@ -12,9 +12,11 @@ //! # #![feature(async_await)] //! # fn main() -> std::io::Result<()> { async_std::task::block_on(async { //! # -//! use async_std::{io, prelude::*}; //! use std::time::Duration; //! +//! use async_std::io; +//! use async_std::prelude::*; +//! //! let stdin = io::stdin(); //! let mut line = String::new(); //! diff --git a/src/time/timeout.rs b/src/time/timeout.rs index ef60f0f..9f21bcc 100644 --- a/src/time/timeout.rs +++ b/src/time/timeout.rs @@ -54,9 +54,11 @@ pub trait Timeout: Future + Sized { /// # #![feature(async_await)] /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async { /// # - /// use async_std::{io, prelude::*}; /// use std::time::Duration; /// + /// use async_std::io; + /// use async_std::prelude::*; + /// /// let stdin = io::stdin(); /// let mut line = String::new(); /// diff --git a/tests/task_local.rs b/tests/task_local.rs index eb18637..e910b07 100644 --- a/tests/task_local.rs +++ b/tests/task_local.rs @@ -2,7 +2,8 @@ use std::sync::atomic::{AtomicBool, Ordering}; -use async_std::{task, task_local}; +use async_std::task; +use async_std::task_local; #[test] fn drop_local() {