2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-10 18:36:43 +00:00

Fix imports in docs

This commit is contained in:
Stjepan Glavina 2019-09-22 12:41:04 +02:00
parent 797a6b2d90
commit 0e3c47c3bf
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ We use the `select` macro for this purpose:
# extern crate futures_util;
# use async_std::{net::TcpStream, prelude::*};
use futures_channel::mpsc;
use futures_util::{select, FutureExt, StreamExt};
use futures_util::{select, FutureExt};
# use std::sync::Arc;
# type Receiver<T> = mpsc::UnboundedReceiver<T>;
@ -131,7 +131,7 @@ use async_std::{
task,
};
use futures_channel::mpsc;
use futures_util::{select, FutureExt, SinkExt, StreamExt};
use futures_util::{select, FutureExt, SinkExt};
use std::{
collections::hash_map::{Entry, HashMap},
future::Future,

View file

@ -23,7 +23,7 @@ use async_std::{
prelude::*,
task,
};
use futures_util::{select, FutureExt, StreamExt};
use futures_util::{select, FutureExt};
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;