about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-06-24 17:19:28 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-06-25 16:26:23 -0400
commit5242e8d2bad01beec7c841d20952cb230bc9fd84 (patch)
tree3d1c741044f7d369c6e16cc811468890ec1f6007 /src/libsyntax/print
parent032dcc57e8876e960837c3a050be2c7570e7eafd (diff)
downloadrust-5242e8d2bad01beec7c841d20952cb230bc9fd84.tar.gz
rust-5242e8d2bad01beec7c841d20952cb230bc9fd84.zip
remove the redundant `each` method from OptVec
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 1a3155337a5..d7b5e57a57f 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -1743,7 +1743,7 @@ pub fn print_bounds(s: @ps, bounds: @OptVec<ast::TyParamBound>) {
     if !bounds.is_empty() {
         word(s.s, ":");
         let mut first = true;
-        for bounds.each |bound| {
+        for bounds.iter().advance |bound| {
             nbsp(s);
             if first {
                 first = false;