mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 03:11:02 +00:00
Just use an existing macro
This commit is contained in:
@@ -117,10 +117,3 @@ macro_rules! __serialize_unimplemented {
|
|||||||
)*
|
)*
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Used only by Serde doc tests. Not public API.
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[macro_export]
|
|
||||||
macro_rules! __serde_ignore_tokens {
|
|
||||||
($($tt:tt)+) => {}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ use ser::{self, Serialize, SerializeSeq, SerializeTuple, SerializeTupleStruct,
|
|||||||
/// -> Result<Self::SerializeSeq, Error> {
|
/// -> Result<Self::SerializeSeq, Error> {
|
||||||
/// // Given Impossible cannot be instantiated, the only
|
/// // Given Impossible cannot be instantiated, the only
|
||||||
/// // thing we can do here is to return an error.
|
/// // thing we can do here is to return an error.
|
||||||
/// # __serde_ignore_tokens! {
|
/// # stringify! {
|
||||||
/// Err(...)
|
/// Err(...)
|
||||||
/// # }
|
/// # };
|
||||||
/// # unimplemented!()
|
/// # unimplemented!()
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user