From 3ea0c7e8506b6a1c45066d3dde37421ae1987d11 Mon Sep 17 00:00:00 2001 From: Thomas Bahn Date: Fri, 19 Dec 2014 09:17:51 +0100 Subject: [PATCH] Append semicolon to item macro invocations in serde2 Following changes in rustc. --- serde2/src/de.rs | 52 +++++++++++++++++++++++------------------------ serde2/src/ser.rs | 28 ++++++++++++------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/serde2/src/de.rs b/serde2/src/de.rs index c7f7ecd4..f320a6b1 100644 --- a/serde2/src/de.rs +++ b/serde2/src/de.rs @@ -237,18 +237,18 @@ pub fn deserialize_from_primitive< E: Error, T: Deserialize + FromPrimitive > self::Visitor 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, diff --git a/serde2/src/ser.rs b/serde2/src/ser.rs index 9af4e80f..95875df8 100644 --- a/serde2/src/ser.rs +++ b/serde2/src/ser.rs @@ -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); ///////////////////////////////////////////////////////////////////////////////