Remove commented code and extra newline

This commit is contained in:
Hugo Duncan
2015-04-30 16:55:31 -04:00
parent a1e101b513
commit 960b68937d
2 changed files with 2 additions and 6 deletions
-1
View File
@@ -551,7 +551,6 @@ fn deserialize_field_visitor(
) )
.build(); .build();
let fmts = field_exprs.iter() let fmts = field_exprs.iter()
.fold(HashSet::new(), |mut set, field_expr| .fold(HashSet::new(), |mut set, field_expr|
match field_expr { match field_expr {
+2 -5
View File
@@ -10,7 +10,6 @@ use aster;
pub enum Rename<'a> { pub enum Rename<'a> {
None, None,
Global(&'a ast::Lit), Global(&'a ast::Lit),
// Format(HashMap<InternedString, &'a ast::Lit>)
Format(HashMap<P<ast::Expr>, &'a ast::Lit>) Format(HashMap<P<ast::Expr>, &'a ast::Lit>)
} }
@@ -47,10 +46,8 @@ pub fn field_rename<'a>(
|item| |item|
match item.node { match item.node {
ast::MetaNameValue(ref n, ref lit) => ast::MetaNameValue(ref n, ref lit) =>
Some((// (n.to_owned(), lit) Some((builder.expr().str(n),
builder.expr().str(n), lit)),
lit
)),
_ => None _ => None
})); }));
Some(Rename::Format(m)) Some(Rename::Format(m))