about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-07-12 01:56:40 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-07-14 09:29:12 -0700
commit242606c79339e2d2e3cf15cc8f02bd6ebc0b8c44 (patch)
tree4ed810d1b7b61d547b852cb449fe50408efdd213 /src/libsyntax
parent23fbe936bfa28fc2c16ec5e321cbe293ef044c0a (diff)
downloadrust-242606c79339e2d2e3cf15cc8f02bd6ebc0b8c44.tar.gz
rust-242606c79339e2d2e3cf15cc8f02bd6ebc0b8c44.zip
Clean up various warnings throughout the codebase
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/pipes/proto.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs
index 75424b60390..5866b8a5af5 100644
--- a/src/libsyntax/ext/pipes/proto.rs
+++ b/src/libsyntax/ext/pipes/proto.rs
@@ -144,7 +144,8 @@ pub struct protocol_ {
 impl protocol_ {
     /// Get a state.
     pub fn get_state(&self, name: &str) -> state {
-        *self.states.iter().find_(|i| name == i.name).get()
+        let mut i = self.states.iter();
+        *i.find_(|i| name == i.name).get()
     }
 
     pub fn get_state_by_id(&self, id: uint) -> state { self.states[id] }