From b7d6c5d9f7b3085a4d40a446eeb95976d2337e07 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 5 Apr 2017 15:01:55 -0700 Subject: [PATCH] Remove no_std special case in forward_to_deserialize --- serde/src/macros.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/serde/src/macros.rs b/serde/src/macros.rs index 126c7ec1..0a83a131 100644 --- a/serde/src/macros.rs +++ b/serde/src/macros.rs @@ -1,24 +1,9 @@ -#[cfg(feature = "std")] #[doc(hidden)] #[macro_export] macro_rules! forward_to_deserialize_method { ($func:ident($($arg:ty),*)) => { #[inline] - fn $func<__V>(self, $(_: $arg,)* visitor: __V) -> ::std::result::Result<__V::Value, Self::Error> - where __V: $crate::de::Visitor - { - self.deserialize(visitor) - } - }; -} - -#[cfg(not(feature = "std"))] -#[doc(hidden)] -#[macro_export] -macro_rules! forward_to_deserialize_method { - ($func:ident($($arg:ty),*)) => { - #[inline] - fn $func<__V>(self, $(_: $arg,)* visitor: __V) -> ::core::result::Result<__V::Value, Self::Error> + fn $func<__V>(self, $(_: $arg,)* visitor: __V) -> $crate::export::Result<__V::Value, Self::Error> where __V: $crate::de::Visitor { self.deserialize(visitor)