mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 09:01:01 +00:00
Remove no_std special case in forward_to_deserialize
This commit is contained in:
+1
-16
@@ -1,24 +1,9 @@
|
|||||||
#[cfg(feature = "std")]
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! forward_to_deserialize_method {
|
macro_rules! forward_to_deserialize_method {
|
||||||
($func:ident($($arg:ty),*)) => {
|
($func:ident($($arg:ty),*)) => {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn $func<__V>(self, $(_: $arg,)* visitor: __V) -> ::std::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)
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#[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>
|
|
||||||
where __V: $crate::de::Visitor
|
where __V: $crate::de::Visitor
|
||||||
{
|
{
|
||||||
self.deserialize(visitor)
|
self.deserialize(visitor)
|
||||||
|
|||||||
Reference in New Issue
Block a user