mirror of
https://github.com/async-rs/async-std.git
synced 2025-03-01 07:39:40 +00:00
cargo fmt
This commit is contained in:
parent
d25dae5419
commit
5429c2c0a3
2 changed files with 5 additions and 3 deletions
|
@ -345,7 +345,8 @@ impl AsyncWrite for &TcpStream {
|
||||||
cx: &mut Context<'_>,
|
cx: &mut Context<'_>,
|
||||||
buf: &[u8],
|
buf: &[u8],
|
||||||
) -> Poll<io::Result<usize>> {
|
) -> Poll<io::Result<usize>> {
|
||||||
self.watcher.poll_write_with(cx, |mut inner| inner.write(buf))
|
self.watcher
|
||||||
|
.poll_write_with(cx, |mut inner| inner.write(buf))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
|
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
//! Unix-specific networking extensions.
|
//! Unix-specific networking extensions.
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
use std::io::{Read as _, Write as _};
|
||||||
use std::net::Shutdown;
|
use std::net::Shutdown;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::io::{Read as _, Write as _};
|
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|
||||||
use futures_io::{AsyncRead, AsyncWrite};
|
use futures_io::{AsyncRead, AsyncWrite};
|
||||||
|
@ -198,7 +198,8 @@ impl AsyncWrite for &UnixStream {
|
||||||
cx: &mut Context<'_>,
|
cx: &mut Context<'_>,
|
||||||
buf: &[u8],
|
buf: &[u8],
|
||||||
) -> Poll<io::Result<usize>> {
|
) -> Poll<io::Result<usize>> {
|
||||||
self.watcher.poll_write_with(cx, |mut inner| inner.write(buf))
|
self.watcher
|
||||||
|
.poll_write_with(cx, |mut inner| inner.write(buf))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
|
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
|
||||||
|
|
Loading…
Reference in a new issue