From bea67bde21d36df40c55b02cd8d8b28c0ec864b6 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 13 Jan 2013 10:48:09 -0800 Subject: Change ast::path into a struct. --- src/libsyntax/fold.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/fold.rs') diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index bca2336bc8c..0cd4dc7d0ad 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -614,10 +614,11 @@ fn noop_fold_ident(&&i: ident, _fld: ast_fold) -> ident { } fn noop_fold_path(&&p: path, fld: ast_fold) -> path { - return {span: fld.new_span(p.span), global: p.global, - idents: vec::map(p.idents, |x| fld.fold_ident(*x)), - rp: p.rp, - types: vec::map(p.types, |x| fld.fold_ty(*x))}; + ast::path { span: fld.new_span(p.span), + global: p.global, + idents: p.idents.map(|x| fld.fold_ident(*x)), + rp: p.rp, + types: p.types.map(|x| fld.fold_ty(*x)) } } fn noop_fold_local(l: local_, fld: ast_fold) -> local_ { -- cgit 1.4.1-3-g733a5