forked from mirror/async-std
		
	Formatting
This commit is contained in:
		
							parent
							
								
									dd40887750
								
							
						
					
					
						commit
						13835b0a78
					
				
					 4 changed files with 11 additions and 4 deletions
				
			
		|  | @ -10,9 +10,11 @@ | ||||||
| //! # #![feature(async_await)]
 | //! # #![feature(async_await)]
 | ||||||
| //! # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
 | //! # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
 | ||||||
| //! #
 | //! #
 | ||||||
| //! use async_std::{io, prelude::*};
 |  | ||||||
| //! use std::time::Duration;
 | //! use std::time::Duration;
 | ||||||
| //!
 | //!
 | ||||||
|  | //! use async_std::io;
 | ||||||
|  | //! use async_std::prelude::*;
 | ||||||
|  | //!
 | ||||||
| //! let stdin = io::stdin();
 | //! let stdin = io::stdin();
 | ||||||
| //! let mut line = String::new();
 | //! let mut line = String::new();
 | ||||||
| //! let dur = Duration::from_secs(5);
 | //! let dur = Duration::from_secs(5);
 | ||||||
|  |  | ||||||
|  | @ -12,9 +12,11 @@ | ||||||
| //! # #![feature(async_await)]
 | //! # #![feature(async_await)]
 | ||||||
| //! # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
 | //! # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
 | ||||||
| //! #
 | //! #
 | ||||||
| //! use async_std::{io, prelude::*};
 |  | ||||||
| //! use std::time::Duration;
 | //! use std::time::Duration;
 | ||||||
| //!
 | //!
 | ||||||
|  | //! use async_std::io;
 | ||||||
|  | //! use async_std::prelude::*;
 | ||||||
|  | //!
 | ||||||
| //! let stdin = io::stdin();
 | //! let stdin = io::stdin();
 | ||||||
| //! let mut line = String::new();
 | //! let mut line = String::new();
 | ||||||
| //!
 | //!
 | ||||||
|  |  | ||||||
|  | @ -54,9 +54,11 @@ pub trait Timeout: Future + Sized { | ||||||
|     /// # #![feature(async_await)]
 |     /// # #![feature(async_await)]
 | ||||||
|     /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
 |     /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
 | ||||||
|     /// #
 |     /// #
 | ||||||
|     /// use async_std::{io, prelude::*};
 |  | ||||||
|     /// use std::time::Duration;
 |     /// use std::time::Duration;
 | ||||||
|     ///
 |     ///
 | ||||||
|  |     /// use async_std::io;
 | ||||||
|  |     /// use async_std::prelude::*;
 | ||||||
|  |     ///
 | ||||||
|     /// let stdin = io::stdin();
 |     /// let stdin = io::stdin();
 | ||||||
|     /// let mut line = String::new();
 |     /// let mut line = String::new();
 | ||||||
|     ///
 |     ///
 | ||||||
|  |  | ||||||
|  | @ -2,7 +2,8 @@ | ||||||
| 
 | 
 | ||||||
| use std::sync::atomic::{AtomicBool, Ordering}; | use std::sync::atomic::{AtomicBool, Ordering}; | ||||||
| 
 | 
 | ||||||
| use async_std::{task, task_local}; | use async_std::task; | ||||||
|  | use async_std::task_local; | ||||||
| 
 | 
 | ||||||
| #[test] | #[test] | ||||||
| fn drop_local() { | fn drop_local() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue