summaryrefslogtreecommitdiffstats
path: root/tokio-codec/src/bytes_codec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-codec/src/bytes_codec.rs')
-rw-r--r--tokio-codec/src/bytes_codec.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tokio-codec/src/bytes_codec.rs b/tokio-codec/src/bytes_codec.rs
index d535aef6..3d6e979d 100644
--- a/tokio-codec/src/bytes_codec.rs
+++ b/tokio-codec/src/bytes_codec.rs
@@ -1,6 +1,6 @@
-use bytes::{Bytes, BufMut, BytesMut};
-use tokio_io::_tokio_codec::{Encoder, Decoder};
+use bytes::{BufMut, Bytes, BytesMut};
use std::io;
+use tokio_io::_tokio_codec::{Decoder, Encoder};
/// A simple `Codec` implementation that just ships bytes around.
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
@@ -8,7 +8,9 @@ pub struct BytesCodec(());
impl BytesCodec {
/// Creates a new `BytesCodec` for shipping around raw bytes.
- pub fn new() -> BytesCodec { BytesCodec(()) }
+ pub fn new() -> BytesCodec {
+ BytesCodec(())
+ }
}
impl Decoder for BytesCodec {