From 04c012dfbfd4e04c53991e0dc31eda9ea1a8fb0d Mon Sep 17 00:00:00 2001 From: Sam Gibson Date: Thu, 27 Aug 2015 18:47:11 +1200 Subject: [PATCH] Binds name instead of inlining value for readability --- components/net/http_loader.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index df82b538b30..59ed5773ceb 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -339,11 +339,13 @@ fn update_sts_list_from_response(url: &Url, response: &HttpResponse, resource_mg IncludeSubdomains::NotIncluded }; - resource_mgr_chan.send( - ControlMsg::SetHSTSEntryForHost( - host.to_string(), include_subdomains, header.max_age - ) - ).unwrap(); + let msg = ControlMsg::SetHSTSEntryForHost( + host.to_string(), + include_subdomains, + header.max_age + ); + + resource_mgr_chan.send(msg).unwrap(); } } }