mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-06 04:27:56 +00:00
Remove implementation of DeserializeSeed for TaggedContentVisitor
It is not used anywhere
This commit is contained in:
@@ -821,22 +821,6 @@ mod content {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'de, T> DeserializeSeed<'de> for TaggedContentVisitor<'de, T>
|
|
||||||
where
|
|
||||||
T: Deserialize<'de>,
|
|
||||||
{
|
|
||||||
type Value = TaggedContent<'de, T>;
|
|
||||||
|
|
||||||
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>
|
|
||||||
where
|
|
||||||
D: Deserializer<'de>,
|
|
||||||
{
|
|
||||||
// Internally tagged enums are only supported in self-describing
|
|
||||||
// formats.
|
|
||||||
deserializer.deserialize_any(self)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'de, T> Visitor<'de> for TaggedContentVisitor<'de, T>
|
impl<'de, T> Visitor<'de> for TaggedContentVisitor<'de, T>
|
||||||
where
|
where
|
||||||
T: Deserialize<'de>,
|
T: Deserialize<'de>,
|
||||||
|
|||||||
Reference in New Issue
Block a user