No longer need e!

This commit is contained in:
David Tolnay 2016-10-19 00:30:23 -07:00
parent 1b42f3f594
commit bb5370b746
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -313,11 +313,6 @@ impl Serialize for () {
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// FIXME(rust #19630) Remove this work-around
macro_rules! e {
($e:expr) => { $e }
}
macro_rules! tuple_impls { macro_rules! tuple_impls {
($( ($(
$TupleVisitor:ident ($len:expr, $($T:ident),+) { $TupleVisitor:ident ($len:expr, $($T:ident),+) {
@ -334,7 +329,7 @@ macro_rules! tuple_impls {
{ {
let mut state = try!(serializer.serialize_tuple($len)); let mut state = try!(serializer.serialize_tuple($len));
$( $(
try!(serializer.serialize_tuple_elt(&mut state, &e!(self.$idx))); try!(serializer.serialize_tuple_elt(&mut state, &self.$idx));
)+ )+
serializer.serialize_tuple_end(state) serializer.serialize_tuple_end(state)
} }