aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/cookie.rs
diff options
context:
space:
mode:
authorJohannes Linke <johannes.linke@posteo.de>2016-01-02 16:51:01 +0100
committerJohannes Linke <johannes.linke@posteo.de>2016-01-02 23:27:15 +0100
commit6b215f38eefc98853244c2ec6f4187ae6f000417 (patch)
treecf4dbc65e6b6fa641359b713f91b596bf9f9a666 /components/net/cookie.rs
parentb1ca3d1cdff412c5ae12113c3681f789becebabc (diff)
downloadservo-6b215f38eefc98853244c2ec6f4187ae6f000417.tar.gz
servo-6b215f38eefc98853244c2ec6f4187ae6f000417.zip
Fix a bunch of clippy lints
Diffstat (limited to 'components/net/cookie.rs')
-rw-r--r--components/net/cookie.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/cookie.rs b/components/net/cookie.rs
index b496eb7256e..2f555767b11 100644
--- a/components/net/cookie.rs
+++ b/components/net/cookie.rs
@@ -39,7 +39,7 @@ impl Cookie {
_ => (false, None)
};
- let url_host = request.host().map(|host| host.serialize()).unwrap_or("".to_owned());
+ let url_host = request.host().map_or("".to_owned(), |host| host.serialize());
// Step 4
let mut domain = cookie.domain.clone().unwrap_or("".to_owned());