From b9d296f87d6081afdd590d5a6006737db961302b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 13 Sep 2023 16:44:25 -0600 Subject: [PATCH] IntoDeserializer for &RawValue --- src/raw.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/raw.rs b/src/raw.rs index 879452370..a2bf0ecbb 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -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;