From 1be24f0758d3075d2e7f141f8831bb8a233ce86e Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 18 Sep 2012 18:31:59 -0700 Subject: replace explicit calls to vec::each with vec::each_ref, partially demode str --- src/libsyntax/print/pprust.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/print') diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 4998dc7af6c..c7aa724d9fd 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1672,9 +1672,9 @@ fn print_arg_mode(s: ps, m: ast::mode) { fn print_bounds(s: ps, bounds: @~[ast::ty_param_bound]) { if vec::len(*bounds) > 0u { word(s.s, ~":"); - for vec::each(*bounds) |bound| { + for vec::each_ref(*bounds) |bound| { nbsp(s); - match bound { + match *bound { ast::bound_copy => word(s.s, ~"Copy"), ast::bound_send => word(s.s, ~"Send"), ast::bound_const => word(s.s, ~"Const"), -- cgit 1.4.1-3-g733a5