about summary refs log tree commit diff
path: root/src/libsyntax/ext/pipes
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-05-12 00:25:31 -0400
committerAlex Crichton <alex@alexcrichton.com>2013-05-14 12:24:43 -0400
commit92d39fe4d5e5ad3d2c2dcafe45eaf6e23edddfd7 (patch)
tree817ebba2489c228d8494662b4ce188e0782b321a /src/libsyntax/ext/pipes
parent2951527528b39dbf47c02b3d329129d677ddcdfd (diff)
downloadrust-92d39fe4d5e5ad3d2c2dcafe45eaf6e23edddfd7.tar.gz
rust-92d39fe4d5e5ad3d2c2dcafe45eaf6e23edddfd7.zip
syntax: Remove #[allow(vecs_implicitly_copyable)]
Diffstat (limited to 'src/libsyntax/ext/pipes')
-rw-r--r--src/libsyntax/ext/pipes/proto.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs
index 7c78ec066d0..f897eb787e5 100644
--- a/src/libsyntax/ext/pipes/proto.rs
+++ b/src/libsyntax/ext/pipes/proto.rs
@@ -154,14 +154,14 @@ pub struct protocol_ {
 
 pub impl protocol_ {
     /// Get a state.
-    fn get_state(&self, name: ~str) -> state {
-        self.states.find(|i| i.name == name).get()
+    fn get_state(&self, name: &str) -> state {
+        self.states.find(|i| name == i.name).get()
     }
 
     fn get_state_by_id(&self, id: uint) -> state { self.states[id] }
 
-    fn has_state(&self, name: ~str) -> bool {
-        self.states.find(|i| i.name == name).is_some()
+    fn has_state(&self, name: &str) -> bool {
+        self.states.find(|i| name == i.name).is_some()
     }
 
     fn filename(&self) -> ~str {