diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-06-24 17:19:28 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-25 16:26:23 -0400 |
| commit | 5242e8d2bad01beec7c841d20952cb230bc9fd84 (patch) | |
| tree | 3d1c741044f7d369c6e16cc811468890ec1f6007 /src/libsyntax/print | |
| parent | 032dcc57e8876e960837c3a050be2c7570e7eafd (diff) | |
| download | rust-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.rs | 2 |
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; |
