Use rustfmt to enforce consistent formatting
This change adds a .rustfmt.toml that includes ALL supported settings, 12 of which we have overridden to attempt to cater to our own proclivities. rustfmt is checked in the rust-nightly CI job.
This commit is contained in:
		| @@ -14,7 +14,8 @@ pub struct PingPong<B> { | ||||
| } | ||||
|  | ||||
| impl<B> PingPong<B> | ||||
|     where B: Buf, | ||||
| where | ||||
|     B: Buf, | ||||
| { | ||||
|     pub fn new() -> Self { | ||||
|         PingPong { | ||||
| @@ -46,7 +47,8 @@ impl<B> PingPong<B> | ||||
|  | ||||
|     /// Send any pending pongs. | ||||
|     pub fn send_pending_pong<T>(&mut self, dst: &mut Codec<T, B>) -> Poll<(), io::Error> | ||||
|         where T: AsyncWrite, | ||||
|     where | ||||
|         T: AsyncWrite, | ||||
|     { | ||||
|         if let Some(pong) = self.sending_pong.take() { | ||||
|             if !dst.poll_ready()?.is_ready() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user