mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 06:41:03 +00:00
Add a note about assuming the deserializer lifetime name
This commit is contained in:
@@ -182,6 +182,10 @@ macro_rules! forward_to_deserialize_helper {
|
|||||||
/// }
|
/// }
|
||||||
/// # fn main() {}
|
/// # fn main() {}
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// The macro assumes the convention that your `Deserializer` lifetime parameter
|
||||||
|
/// is called `'de`. It will not work if the `Deserializer` lifetime parameter
|
||||||
|
/// is called something different.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! forward_to_deserialize {
|
macro_rules! forward_to_deserialize {
|
||||||
($($func:ident)*) => {
|
($($func:ident)*) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user