diff options
author | faineance <faineance@users.noreply.github.com> | 2016-03-27 13:29:06 +0100 |
---|---|---|
committer | faineance <faineance@users.noreply.github.com> | 2016-03-27 13:54:41 +0100 |
commit | 7c45a4fea031ac97400c6b8416a7b4b897bd0f52 (patch) | |
tree | e32c20556acb9c121033614eede6d4f2040e1709 /components/script/cors.rs | |
parent | 418842faf9135da4b70b12fd8b88bc6b8d504cfc (diff) | |
download | servo-7c45a4fea031ac97400c6b8416a7b4b897bd0f52.tar.gz servo-7c45a4fea031ac97400c6b8416a7b4b897bd0f52.zip |
change changes effecting verbosity
Diffstat (limited to 'components/script/cors.rs')
-rw-r--r-- | components/script/cors.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/cors.rs b/components/script/cors.rs index 11312aba407..8be1ec9d6d2 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -394,9 +394,8 @@ impl CORSCache { header_name: &str) -> Option<&'a mut CORSCacheEntry> { self.cleanup(); - let ref mut buf = self.0; // Credentials are not yet implemented here - buf.iter_mut().find(|e| { + self.0.iter_mut().find(|e| { e.origin.scheme == request.origin.scheme && e.origin.host() == request.origin.host() && e.origin.port() == request.origin.port() && e.url == request.destination && e.header_or_method.match_header(header_name) @@ -421,9 +420,8 @@ impl CORSCache { -> Option<&'a mut CORSCacheEntry> { // we can take the method from CORSRequest itself self.cleanup(); - let ref mut buf = self.0; // Credentials are not yet implemented here - buf.iter_mut().find(|e| { + self.0.iter_mut().find(|e| { e.origin.scheme == request.origin.scheme && e.origin.host() == request.origin.host() && e.origin.port() == request.origin.port() && e.url == request.destination && e.header_or_method.match_method(method) |