Append semicolon to item macro invocations in serde2
Following changes in rustc.
This commit is contained in:
parent
d6807c0e90
commit
3ea0c7e850
@ -237,18 +237,18 @@ pub fn deserialize_from_primitive<
|
||||
E: Error,
|
||||
T: Deserialize<S, E> + FromPrimitive
|
||||
> self::Visitor<S, T, E> for Visitor {
|
||||
impl_deserialize_num_method!(int, visit_int, from_int)
|
||||
impl_deserialize_num_method!(i8, visit_i8, from_i8)
|
||||
impl_deserialize_num_method!(i16, visit_i16, from_i16)
|
||||
impl_deserialize_num_method!(i32, visit_i32, from_i32)
|
||||
impl_deserialize_num_method!(i64, visit_i64, from_i64)
|
||||
impl_deserialize_num_method!(uint, visit_uint, from_uint)
|
||||
impl_deserialize_num_method!(u8, visit_u8, from_u8)
|
||||
impl_deserialize_num_method!(u16, visit_u16, from_u16)
|
||||
impl_deserialize_num_method!(u32, visit_u32, from_u32)
|
||||
impl_deserialize_num_method!(u64, visit_u64, from_u64)
|
||||
impl_deserialize_num_method!(f32, visit_f32, from_f32)
|
||||
impl_deserialize_num_method!(f64, visit_f64, from_f64)
|
||||
impl_deserialize_num_method!(int, visit_int, from_int);
|
||||
impl_deserialize_num_method!(i8, visit_i8, from_i8);
|
||||
impl_deserialize_num_method!(i16, visit_i16, from_i16);
|
||||
impl_deserialize_num_method!(i32, visit_i32, from_i32);
|
||||
impl_deserialize_num_method!(i64, visit_i64, from_i64);
|
||||
impl_deserialize_num_method!(uint, visit_uint, from_uint);
|
||||
impl_deserialize_num_method!(u8, visit_u8, from_u8);
|
||||
impl_deserialize_num_method!(u16, visit_u16, from_u16);
|
||||
impl_deserialize_num_method!(u32, visit_u32, from_u32);
|
||||
impl_deserialize_num_method!(u64, visit_u64, from_u64);
|
||||
impl_deserialize_num_method!(f32, visit_f32, from_f32);
|
||||
impl_deserialize_num_method!(f64, visit_f64, from_f64);
|
||||
}
|
||||
|
||||
state.visit(&mut Visitor)
|
||||
@ -268,18 +268,18 @@ macro_rules! impl_deserialize_num {
|
||||
}
|
||||
}
|
||||
|
||||
impl_deserialize_num!(int)
|
||||
impl_deserialize_num!(i8)
|
||||
impl_deserialize_num!(i16)
|
||||
impl_deserialize_num!(i32)
|
||||
impl_deserialize_num!(i64)
|
||||
impl_deserialize_num!(uint)
|
||||
impl_deserialize_num!(u8)
|
||||
impl_deserialize_num!(u16)
|
||||
impl_deserialize_num!(u32)
|
||||
impl_deserialize_num!(u64)
|
||||
impl_deserialize_num!(f32)
|
||||
impl_deserialize_num!(f64)
|
||||
impl_deserialize_num!(int);
|
||||
impl_deserialize_num!(i8);
|
||||
impl_deserialize_num!(i16);
|
||||
impl_deserialize_num!(i32);
|
||||
impl_deserialize_num!(i64);
|
||||
impl_deserialize_num!(uint);
|
||||
impl_deserialize_num!(u8);
|
||||
impl_deserialize_num!(u16);
|
||||
impl_deserialize_num!(u32);
|
||||
impl_deserialize_num!(u64);
|
||||
impl_deserialize_num!(f32);
|
||||
impl_deserialize_num!(f64);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -377,14 +377,14 @@ impl<
|
||||
|
||||
macro_rules! peel {
|
||||
($name:ident, $($other:ident,)*) => {
|
||||
impl_deserialize_tuple!($($other,)*)
|
||||
impl_deserialize_tuple!($($other,)*);
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! impl_deserialize_tuple {
|
||||
() => {};
|
||||
( $($name:ident,)+ ) => {
|
||||
peel!($($name,)*)
|
||||
peel!($($name,)*);
|
||||
|
||||
impl<
|
||||
S: Deserializer<E>,
|
||||
|
@ -176,20 +176,20 @@ macro_rules! impl_visit {
|
||||
}
|
||||
}
|
||||
|
||||
impl_visit!(bool, visit_bool)
|
||||
impl_visit!(int, visit_int)
|
||||
impl_visit!(i8, visit_i8)
|
||||
impl_visit!(i16, visit_i16)
|
||||
impl_visit!(i32, visit_i32)
|
||||
impl_visit!(i64, visit_i64)
|
||||
impl_visit!(uint, visit_uint)
|
||||
impl_visit!(u8, visit_u8)
|
||||
impl_visit!(u16, visit_u16)
|
||||
impl_visit!(u32, visit_u32)
|
||||
impl_visit!(u64, visit_u64)
|
||||
impl_visit!(f32, visit_f32)
|
||||
impl_visit!(f64, visit_f64)
|
||||
impl_visit!(char, visit_char)
|
||||
impl_visit!(bool, visit_bool);
|
||||
impl_visit!(int, visit_int);
|
||||
impl_visit!(i8, visit_i8);
|
||||
impl_visit!(i16, visit_i16);
|
||||
impl_visit!(i32, visit_i32);
|
||||
impl_visit!(i64, visit_i64);
|
||||
impl_visit!(uint, visit_uint);
|
||||
impl_visit!(u8, visit_u8);
|
||||
impl_visit!(u16, visit_u16);
|
||||
impl_visit!(u32, visit_u32);
|
||||
impl_visit!(u64, visit_u64);
|
||||
impl_visit!(f32, visit_f32);
|
||||
impl_visit!(f64, visit_f64);
|
||||
impl_visit!(char, visit_char);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user