Skip to content

Commit

Permalink
Merge pull request #1073 from dtolnay/rawvalue
Browse files Browse the repository at this point in the history
IntoDeserializer for &RawValue
  • Loading branch information
dtolnay committed Sep 13, 2023
2 parents 4ea34a2 + b9d296f commit 00626a0
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 00626a0

Please sign in to comment.