diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-28 17:04:39 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-28 17:44:15 -0700 |
| commit | fec96b2ae0f387488f718390eee4c67a043d9a9b (patch) | |
| tree | 326578f3138c95dc79cdc1ebe248de3ac2b12cf3 /src/libsyntax | |
| parent | f7e90fca6e9a9e262225571a5d6a4e010ca82849 (diff) | |
| download | rust-fec96b2ae0f387488f718390eee4c67a043d9a9b.tar.gz rust-fec96b2ae0f387488f718390eee4c67a043d9a9b.zip | |
Demoding in iter: any, all, map_to_vec, flat_map_to_vec, filter_to_vec
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/pipes/proto.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs index 70b38e83ad5..6d58d209fcf 100644 --- a/src/libsyntax/ext/pipes/proto.rs +++ b/src/libsyntax/ext/pipes/proto.rs @@ -210,10 +210,10 @@ fn visit<Tproto, Tstate, Tmessage, V: visitor<Tproto, Tstate, Tmessage>>( // the copy keywords prevent recursive use of dvec let states = do (copy proto.states).map_to_vec |s| { let messages = do (copy s.messages).map_to_vec |m| { - let message(name, span, tys, this, next) = *m; + let message(name, span, tys, this, next) = m; visitor.visit_message(name, span, tys, this, next) }; - visitor.visit_state(*s, messages) + visitor.visit_state(s, messages) }; visitor.visit_proto(proto, states) } |
