mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-14 21:01:02 +00:00
Eagerly implement common traits for IgnoredAny
This commit is contained in:
@@ -4,7 +4,7 @@ use de::{Deserialize, Deserializer, Visitor, SeqVisitor, MapVisitor, Error};
|
|||||||
|
|
||||||
/// A target for deserializers that want to ignore data. Implements Deserialize
|
/// A target for deserializers that want to ignore data. Implements Deserialize
|
||||||
/// and silently eats data given to it.
|
/// and silently eats data given to it.
|
||||||
#[derive(Debug)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
pub struct IgnoredAny;
|
pub struct IgnoredAny;
|
||||||
|
|
||||||
impl<'de> Deserialize<'de> for IgnoredAny {
|
impl<'de> Deserialize<'de> for IgnoredAny {
|
||||||
|
|||||||
Reference in New Issue
Block a user