From baeac2f9ac0e64eefe22779d28a421c5f5eadb58 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Sun, 17 Feb 2013 05:24:57 -0500 Subject: [PATCH] libsyntax: Long lines. --- src/libsyntax/ext/pipes/ast_builder.rs | 12 ++++++++---- src/libsyntax/ext/pipes/pipec.rs | 6 ++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 661a2dd6679..6638a47ebf8 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -93,9 +93,12 @@ pub trait ext_ctxt_ast_builder { ty_params: ~[ast::ty_param]) -> @ast::item; fn item_struct(&self, name: ident, span: span, struct_def: ast::struct_def) -> @ast::item; - fn struct_expr(&self, path: @ast::path, fields: ~[ast::field]) -> @ast::expr; - fn variant(&self, name: ident, span: span, +tys: ~[@ast::Ty]) -> ast::variant; - fn item_mod(&self, name: ident, span: span, +items: ~[@ast::item]) -> @ast::item; + fn struct_expr(&self, path: @ast::path, + fields: ~[ast::field]) -> @ast::expr; + fn variant(&self, name: ident, span: span, + +tys: ~[@ast::Ty]) -> ast::variant; + fn item_mod(&self, name: ident, span: span, + +items: ~[@ast::item]) -> @ast::item; fn ty_path_ast_builder(&self, path: @ast::path) -> @ast::Ty; fn item_ty_poly(&self, name: ident, span: span, @@ -282,7 +285,8 @@ pub impl ext_ctxt_ast_builder for ext_ctxt { self.item(name, span, ast::item_struct(@struct_def, ty_params)) } - fn struct_expr(&self, path: @ast::path, fields: ~[ast::field]) -> @ast::expr { + fn struct_expr(&self, path: @ast::path, + fields: ~[ast::field]) -> @ast::expr { @ast::expr { id: self.next_id(), callee_id: self.next_id(), diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 9a572c72627..77164803caa 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -33,7 +33,8 @@ pub trait gen_send { pub trait to_type_decls { fn to_type_decls(&self, cx: ext_ctxt) -> ~[@ast::item]; - fn to_endpoint_decls(&self, cx: ext_ctxt, dir: direction) -> ~[@ast::item]; + fn to_endpoint_decls(&self, cx: ext_ctxt, + dir: direction) -> ~[@ast::item]; } pub trait gen_init { @@ -253,7 +254,8 @@ pub impl to_type_decls for state { ] } - fn to_endpoint_decls(&self, cx: ext_ctxt, dir: direction) -> ~[@ast::item] { + fn to_endpoint_decls(&self, cx: ext_ctxt, + dir: direction) -> ~[@ast::item] { debug!("pipec: to_endpoint_decls"); let dir = match dir { send => (*self).dir,