Skip to content

Commit

Permalink
IntoDeserializer for &RawValue
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 13, 2023
1 parent 4ea34a2 commit b9d296f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/raw.rs
Expand Up @@ -528,6 +528,14 @@ impl<'de> MapAccess<'de> for BorrowedRawDeserializer<'de> {
}
}

impl<'de> IntoDeserializer<'de, Error> for &'de RawValue {
type Deserializer = &'de RawValue;

fn into_deserializer(self) -> Self::Deserializer {
self
}
}

impl<'de> Deserializer<'de> for &'de RawValue {
type Error = Error;

Expand Down

0 comments on commit b9d296f

Please sign in to comment.