Skip to content

Commit

Permalink
Remove implementation of DeserializeSeed for TaggedContentVisitor
Browse files Browse the repository at this point in the history
It is not used anywhere
  • Loading branch information
Mingun committed Feb 25, 2023
1 parent a7fcac5 commit cae74da
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions serde/src/private/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
where
T: Deserialize<'de>,
Expand Down

0 comments on commit cae74da

Please sign in to comment.