Just use an existing macro

This commit is contained in:
David Tolnay 2017-04-07 17:26:03 -07:00
parent fdaa8202b9
commit cc933b9cdb
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 9 deletions

View File

@ -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)+) => {}
}

View File

@ -35,9 +35,9 @@ use ser::{self, Serialize, SerializeSeq, SerializeTuple, SerializeTupleStruct,
/// -> Result<Self::SerializeSeq, Error> {
/// // Given Impossible cannot be instantiated, the only
/// // thing we can do here is to return an error.
/// # __serde_ignore_tokens! {
/// # stringify! {
/// Err(...)
/// # }
/// # };
/// # unimplemented!()
/// }
///