aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/cookie.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-10-12 19:40:48 -0400
committerCorey Farwell <coreyf@rwell.org>2015-10-12 20:21:49 -0400
commit20beaf5af31cb58c112cedc6bd4a2f4b89196da4 (patch)
treef2628f82f068194739b33d763b462a4da5690675 /components/net/cookie.rs
parent6303126e0c48e9c83aa7edd813079a6a360837b2 (diff)
downloadservo-20beaf5af31cb58c112cedc6bd4a2f4b89196da4.tar.gz
servo-20beaf5af31cb58c112cedc6bd4a2f4b89196da4.zip
Fix issues found by rust-clippy
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 0bc77eae251..67e95661c77 100644
--- a/components/net/cookie.rs
+++ b/components/net/cookie.rs
@@ -154,7 +154,7 @@ impl Cookie {
}
}
- if self.cookie.secure && url.scheme != "https".to_owned() {
+ if self.cookie.secure && url.scheme != "https" {
return false;
}
if self.cookie.httponly && source == CookieSource::NonHTTP {