2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-28 20:16:41 +00:00

fix doc tests (#431)

* fix doc tests

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* cargo fmt

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Yoshua Wuyts 2019-11-01 12:54:43 +01:00 committed by Stjepan Glavina
parent 57670dd9d7
commit a3b742188d
2 changed files with 2 additions and 3 deletions

View file

@ -1,5 +1,5 @@
use std::cmp::{Ord, Ordering};
use std::marker::PhantomData; use std::marker::PhantomData;
use std::cmp::{Ordering, Ord};
use std::pin::Pin; use std::pin::Pin;
use pin_project_lite::pin_project; use pin_project_lite::pin_project;

View file

@ -774,11 +774,10 @@ extension_trait! {
# Examples # Examples
``` ```ignore
# fn main() { async_std::task::block_on(async { # fn main() { async_std::task::block_on(async {
# #
use std::collections::VecDeque; use std::collections::VecDeque;
use async_std::prelude::*; use async_std::prelude::*;
let s: VecDeque<usize> = vec![1, 2, 3].into_iter().collect(); let s: VecDeque<usize> = vec![1, 2, 3].into_iter().collect();