diff options
author | João Oliveira <hello@jxs.pt> | 2015-08-15 02:27:04 +0100 |
---|---|---|
committer | João Oliveira <hello@jxs.pt> | 2015-08-15 02:27:39 +0100 |
commit | 0038580abf08d40b41136d1350a48da0c757ed77 (patch) | |
tree | 2e1158c846591476f24d38425783b4eeaa365bc0 /components/script/cors.rs | |
parent | 13e7de482c0f58ca5af30dbca5d94e6b9cedd1cd (diff) | |
download | servo-0038580abf08d40b41136d1350a48da0c757ed77.tar.gz servo-0038580abf08d40b41136d1350a48da0c757ed77.zip |
Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`
closes #7197
Diffstat (limited to 'components/script/cors.rs')
-rw-r--r-- | components/script/cors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/cors.rs b/components/script/cors.rs index f9170edc020..35111966fde 100644 --- a/components/script/cors.rs +++ b/components/script/cors.rs @@ -259,7 +259,7 @@ impl CORSRequest { // This cache should come from the user agent, creating a new one here to check // for compile time errors let cache = &mut CORSCache(vec!()); - for m in methods.iter() { + for m in methods { let cache_match = cache.match_method_and_update(self, m, max_age); if !cache_match { cache.insert(CORSCacheEntry::new(self.origin.clone(), self.destination.clone(), |