From 01114ebcf82624b2ee32a77b4b799c2c067c6da1 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 3 Jan 2017 15:05:07 +0100 Subject: [PATCH] Reformat WebSocketNetworkEvent::ConnectionEstablished and CoreResourceMsg::SetCookieForUrl. --- components/net_traits/lib.rs | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs index 3cad32435b0..39b467dc49e 100644 --- a/components/net_traits/lib.rs +++ b/components/net_traits/lib.rs @@ -316,12 +316,10 @@ pub enum WebSocketDomAction { #[derive(Deserialize, Serialize)] pub enum WebSocketNetworkEvent { - ConnectionEstablished( - #[serde(deserialize_with = "::hyper_serde::deserialize", - serialize_with = "::hyper_serde::serialize")] - header::Headers, - Vec - ), + ConnectionEstablished(#[serde(deserialize_with = "::hyper_serde::deserialize", + serialize_with = "::hyper_serde::serialize")] + header::Headers, + Vec), MessageReceived(MessageData), Close(Option, String), Fail, @@ -346,13 +344,11 @@ pub enum CoreResourceMsg { /// Try to make a websocket connection to a URL. WebsocketConnect(WebSocketCommunicate, WebSocketConnectData), /// Store a cookie for a given originating URL - SetCookieForUrl( - ServoUrl, - #[serde(deserialize_with = "::hyper_serde::deserialize", - serialize_with = "::hyper_serde::serialize")] - Cookie, - CookieSource - ), + SetCookieForUrl(ServoUrl, + #[serde(deserialize_with = "::hyper_serde::deserialize", + serialize_with = "::hyper_serde::serialize")] + Cookie, + CookieSource), /// Store cookies for a given originating URL SetCookiesForUrl(ServoUrl, Vec>, CookieSource), /// Retrieve the stored cookies for a given URL