Simplify some Folder implementations in tests
diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs
index a3c39cd..b3f90d2 100644
--- a/tests/test_precedence.rs
+++ b/tests/test_precedence.rs
@@ -244,15 +244,12 @@
fn fold_field(&mut self, f: Field) -> Field {
Field {
- ident: self.fold_ident(f.ident),
expr: if f.is_shorthand {
f.expr.map(|e| fold::noop_fold_expr(e, self))
} else {
self.fold_expr(f.expr)
},
- span: self.new_span(f.span),
- is_shorthand: f.is_shorthand,
- attrs: fold::fold_thin_attrs(f.attrs, self),
+ ..f
}
}