mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
$cargo fmt
This commit is contained in:
parent
ec4b09ecd0
commit
e3bf89fc05
2 changed files with 4 additions and 5 deletions
|
@ -1,13 +1,12 @@
|
||||||
use futures::select;
|
use futures::select;
|
||||||
use futures::FutureExt;
|
use futures::FutureExt;
|
||||||
use std::io::{self, BufReader as StdBufReader, BufRead};
|
use std::io::{self, BufRead, BufReader as StdBufReader};
|
||||||
|
|
||||||
use async_std::{
|
use async_std::{
|
||||||
io::{BufReader},
|
io::BufReader,
|
||||||
net::{TcpStream, ToSocketAddrs},
|
net::{TcpStream, ToSocketAddrs},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
stream,
|
stream, task,
|
||||||
task,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
|
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
//! Echoes lines read on stdin to stdout.
|
//! Echoes lines read on stdin to stdout.
|
||||||
|
|
||||||
use std::io::Write;
|
|
||||||
use async_std::io;
|
use async_std::io;
|
||||||
use async_std::task;
|
use async_std::task;
|
||||||
|
use std::io::Write;
|
||||||
|
|
||||||
fn main() -> io::Result<()> {
|
fn main() -> io::Result<()> {
|
||||||
task::block_on(async {
|
task::block_on(async {
|
||||||
|
|
Loading…
Reference in a new issue