Skip to content

Commit

Permalink
*: Run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Jan 14, 2021
1 parent 2505ee5 commit d05295a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion benches/lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

extern crate test;

use futures::{executor, io::Cursor, TryStreamExt};
use asynchronous_codec::{FramedRead, LinesCodec};
use futures::{executor, io::Cursor, TryStreamExt};

#[bench]
fn short(b: &mut test::Bencher) {
Expand Down
2 changes: 0 additions & 2 deletions src/codec/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ where
}
}


impl<Enc, Dec> Default for JsonCodec<Enc, Dec>
where
for<'de> Dec: Deserialize<'de> + 'static,
Expand All @@ -164,7 +163,6 @@ where
}
}


#[cfg(test)]
mod test {
use bytes::BytesMut;
Expand Down
2 changes: 1 addition & 1 deletion tests/bytes.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use asynchronous_codec::{BytesCodec, Framed};
use futures::io::Cursor;
use futures::{executor, TryStreamExt};
use asynchronous_codec::{BytesCodec, Framed};

#[test]
fn decodes() {
Expand Down
2 changes: 1 addition & 1 deletion tests/framed_read.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use asynchronous_codec::{BytesMut, Decoder, FramedRead, LinesCodec};
use futures::executor;
use futures::stream::StreamExt;
use futures::AsyncRead;
use asynchronous_codec::{BytesMut, Decoder, FramedRead, LinesCodec};
use std::io;
use std::pin::Pin;
use std::task::{Context, Poll};
Expand Down
2 changes: 1 addition & 1 deletion tests/framed_write.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use asynchronous_codec::{Bytes, BytesCodec, FramedWrite, LinesCodec};
use core::iter::Iterator;
use futures::io::{AsyncWrite, Cursor};
use futures::sink::SinkExt;
use futures::{executor, stream, stream::StreamExt};
use asynchronous_codec::{Bytes, BytesCodec, FramedWrite, LinesCodec};
use std::pin::Pin;
use std::task::{Context, Poll};

Expand Down
2 changes: 1 addition & 1 deletion tests/length_delimited.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use asynchronous_codec::{Bytes, Framed, LengthCodec};
use futures::io::Cursor;
use futures::{executor, SinkExt, StreamExt};
use asynchronous_codec::{Bytes, Framed, LengthCodec};

#[test]
fn same_msgs_are_received_as_were_sent() {
Expand Down
2 changes: 1 addition & 1 deletion tests/lines.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use asynchronous_codec::{FramedRead, LinesCodec};
use futures::io::Cursor;
use futures::{executor, TryStreamExt};
use asynchronous_codec::{FramedRead, LinesCodec};

#[test]
fn it_works() {
Expand Down

0 comments on commit d05295a

Please sign in to comment.