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>
poc-serde-support
Yoshua Wuyts 5 years ago committed by Stjepan Glavina
parent 57670dd9d7
commit a3b742188d

@ -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;

@ -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();

Loading…
Cancel
Save