From cc70ac1ef27fd09bc288ff494df7586d2b8f98cc Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 7 Sep 2017 17:05:07 -0700 Subject: [PATCH] fix style to match crate --- tests/support/src/frames.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/support/src/frames.rs b/tests/support/src/frames.rs index 1be4bb0..3348ee4 100644 --- a/tests/support/src/frames.rs +++ b/tests/support/src/frames.rs @@ -12,7 +12,7 @@ pub const SETTINGS_ACK: &'static [u8] = &[0, 0, 0, 4, 1, 0, 0, 0, 0]; // ==== helper functions to easily construct h2 Frames ==== pub fn headers(id: T) -> MockHeaders -where T: Into, + where T: Into, { MockHeaders(frame::Headers::new( id.into(), @@ -22,14 +22,14 @@ where T: Into, } pub fn data(id: T, buf: B) -> MockData -where T: Into, - B: Into, + where T: Into, + B: Into, { MockData(frame::Data::new(id.into(), buf.into())) } pub fn window_update(id: T, sz: u32) -> frame::WindowUpdate -where T: Into, + where T: Into, { frame::WindowUpdate::new(id.into(), sz) } @@ -40,8 +40,8 @@ pub struct MockHeaders(frame::Headers); impl MockHeaders { pub fn request(self, method: M, uri: U) -> Self - where M: HttpTryInto, - U: HttpTryInto, + where M: HttpTryInto, + U: HttpTryInto, { let method = method.try_into().unwrap(); let uri = uri.try_into().unwrap(); @@ -55,7 +55,7 @@ impl MockHeaders { } pub fn response(self, status: S) -> Self - where S: HttpTryInto, + where S: HttpTryInto, { let status = status.try_into().unwrap(); let (id, _, fields) = self.into_parts(); @@ -148,8 +148,8 @@ pub trait HttpTryInto { } impl HttpTryInto for U -where T: HttpTryFrom, - T::Error: fmt::Debug, + where T: HttpTryFrom, + T::Error: fmt::Debug, { type Error = T::Error;