Skip to content

Commit

Permalink
remove remaining instances of VecDeque stream
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
  • Loading branch information
yoshuawuyts committed Nov 4, 2019
1 parent 78614c6 commit f894836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/option/product.rs
Expand Up @@ -20,10 +20,10 @@ where
```
# fn main() { async_std::task::block_on(async {
#
use std::collections::VecDeque;
use async_std::prelude::*;
use async_std::stream;
let v: VecDeque<_> = vec![1, 2, 4].into_iter().collect();
let v = stream::from_iter(vec![1, 2, 4]);
let prod: Option<i32> = v.map(|x|
if x < 0 {
None
Expand Down
4 changes: 2 additions & 2 deletions src/stream/stream/mod.rs
Expand Up @@ -2012,10 +2012,10 @@ extension_trait! {
# fn main() { async_std::task::block_on(async {
#
async fn factorial(n: u32) -> u32 {
use std::collections::VecDeque;
use async_std::prelude::*;
use async_std::stream;
let s: VecDeque<_> = (1..=n).collect();
let s = Stream::from_iter(1..=n);
s.product().await
}
Expand Down

0 comments on commit f894836

Please sign in to comment.