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

View File

@ -551,7 +551,6 @@ fn deserialize_field_visitor(
)
.build();
let fmts = field_exprs.iter()
.fold(HashSet::new(), |mut set, field_expr|
match field_expr {

View File

@ -10,7 +10,6 @@ use aster;
pub enum Rename<'a> {
None,
Global(&'a ast::Lit),
// Format(HashMap<InternedString, &'a ast::Lit>)
Format(HashMap<P<ast::Expr>, &'a ast::Lit>)
}
@ -47,10 +46,8 @@ pub fn field_rename<'a>(
|item|
match item.node {
ast::MetaNameValue(ref n, ref lit) =>
Some((// (n.to_owned(), lit)
builder.expr().str(n),
lit
)),
Some((builder.expr().str(n),
lit)),
_ => None
}));
Some(Rename::Format(m))