summary refs log tree commit diff
path: root/src/libsyntax/ast_map
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-02-01 12:44:15 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-02-04 20:06:08 -0500
commit571cc7f8e98da46735a5728387c768cde75d010c (patch)
tree2260e6f54186e1876a093bc670535116233ef524 /src/libsyntax/ast_map
parentba2f13ef0667ce90f55ab0f1506bf5ee7b852d96 (diff)
downloadrust-571cc7f8e98da46735a5728387c768cde75d010c.tar.gz
rust-571cc7f8e98da46735a5728387c768cde75d010c.zip
remove all kind annotations from closures
Diffstat (limited to 'src/libsyntax/ast_map')
-rw-r--r--src/libsyntax/ast_map/blocks.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast_map/blocks.rs b/src/libsyntax/ast_map/blocks.rs
index a85b87f47d6..1a537c7a5b8 100644
--- a/src/libsyntax/ast_map/blocks.rs
+++ b/src/libsyntax/ast_map/blocks.rs
@@ -179,13 +179,13 @@ impl<'a> FnLikeNode<'a> {
     }
 
     pub fn kind(self) -> visit::FnKind<'a> {
-        let item = |: p: ItemFnParts<'a>| -> visit::FnKind<'a> {
+        let item = |p: ItemFnParts<'a>| -> visit::FnKind<'a> {
             visit::FkItemFn(p.ident, p.generics, p.unsafety, p.abi)
         };
-        let closure = |: _: ClosureParts| {
+        let closure = |_: ClosureParts| {
             visit::FkFnBlock
         };
-        let method = |: m: &'a ast::Method| {
+        let method = |m: &'a ast::Method| {
             visit::FkMethod(m.pe_ident(), m.pe_generics(), m)
         };
         self.handle(item, method, closure)