diff options
author | Joey Sacchini <joey@sacchini.net> | 2020-12-03 16:44:02 -0500 |
---|---|---|
committer | Joey Sacchini <joey@sacchini.net> | 2020-12-03 16:44:02 -0500 |
commit | e080f1ecdbc9737a0656f803b491acad01039752 (patch) | |
tree | c6f673bdcf8962b275a3d3011d4aa4ae34ec4501 /src/tcp.rs | |
parent | 4fe34abc62651a79a750e25c2a1294cdf0464280 (diff) | |
download | craftio-rs-e080f1ecdbc9737a0656f803b491acad01039752.tar.gz craftio-rs-e080f1ecdbc9737a0656f803b491acad01039752.tar.bz2 craftio-rs-e080f1ecdbc9737a0656f803b491acad01039752.zip |
cargo fmt
Diffstat (limited to 'src/tcp.rs')
-rw-r--r-- | src/tcp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,7 @@ use std::io::BufReader as StdBufReader; use std::net::TcpStream; #[cfg(any(feature = "futures-io", feature = "tokio-io"))] -use crate::{CraftAsyncWriter, CraftAsyncReader, IntoBufferedAsyncRead}; +use crate::{CraftAsyncReader, CraftAsyncWriter, IntoBufferedAsyncRead}; pub const BUF_SIZE: usize = 8192; @@ -51,7 +51,7 @@ where { pub fn from_unbuffered_async<U>(tuple: (U, W), read_direction: PacketDirection) -> Self where - U: IntoBufferedAsyncRead<Target=R>, + U: IntoBufferedAsyncRead<Target = R>, { Self::from_unbuffered_async_with_state(tuple, read_direction, State::Handshaking) } @@ -62,7 +62,7 @@ where state: State, ) -> Self where - U: IntoBufferedAsyncRead<Target=R>, + U: IntoBufferedAsyncRead<Target = R>, { let (ru, writer) = tuple; let reader = ru.into_buffered(BUF_SIZE); |