about summary refs log tree commit diff
path: root/src/librustc/util/nodemap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc/util/nodemap.rs')
-rw-r--r--src/librustc/util/nodemap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/util/nodemap.rs b/src/librustc/util/nodemap.rs
index 7aa126371c4..8da06e63dae 100644
--- a/src/librustc/util/nodemap.rs
+++ b/src/librustc/util/nodemap.rs
@@ -62,7 +62,7 @@ impl Hasher for FnvHasher {
 impl Writer for FnvHasher {
     fn write(&mut self, bytes: &[u8]) {
         let FnvHasher(mut hash) = *self;
-        for byte in bytes.iter() {
+        for byte in bytes {
             hash = hash ^ (*byte as u64);
             hash = hash * 0x100000001b3;
         }