Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 committed Mar 11, 2020
1 parent 1479499 commit bfcff94
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@
//! [`Stream`]: https://docs.rs/futures/0.3/futures/stream/trait.Stream.html
//! [`Sink`]: https://docs.rs/futures/0.3/futures/sink/trait.Sink.html

use {
bytes::{Bytes, BytesMut},
futures::{prelude::*, ready},
pin_project::pin_project,
std::{
marker::PhantomData,
pin::Pin,
task::{Context, Poll},
},
use bytes::{Bytes, BytesMut};
use futures::{prelude::*, ready};
use pin_project::pin_project;
use std::{
marker::PhantomData,
pin::Pin,
task::{Context, Poll},
};

/// Serializes a value into a destination buffer
Expand Down Expand Up @@ -321,13 +319,11 @@ pub mod formats {
#[cfg(feature = "messagepack")]
pub use self::messagepack::*;

use {
super::{Deserializer, Serializer},
bytes::{buf::BufExt, Bytes, BytesMut},
derivative::Derivative,
serde::{Deserialize, Serialize},
std::{io, marker::PhantomData, pin::Pin},
};
use super::{Deserializer, Serializer};
use bytes::{buf::BufExt, Bytes, BytesMut};
use derivative::Derivative;
use serde::{Deserialize, Serialize};
use std::{io, marker::PhantomData, pin::Pin};

#[cfg(feature = "bincode")]
mod bincode {
Expand Down

0 comments on commit bfcff94

Please sign in to comment.