aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.rs
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-12-03 16:44:02 -0500
committerJoey Sacchini <joey@sacchini.net>2020-12-03 16:44:02 -0500
commite080f1ecdbc9737a0656f803b491acad01039752 (patch)
treec6f673bdcf8962b275a3d3011d4aa4ae34ec4501 /src/tcp.rs
parent4fe34abc62651a79a750e25c2a1294cdf0464280 (diff)
downloadcraftio-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.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tcp.rs b/src/tcp.rs
index 37a94c5..bd88885 100644
--- a/src/tcp.rs
+++ b/src/tcp.rs
@@ -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);