Repository: serde-rs/json (language: rust)

Issue:
impl IntoDeserializer for &RawValue?
Currently, IntoDeserializer is implemented for Value and &Value, but not &RawValue. It seems like this is a missing piece of the API


Discussion / hints:

Fix patch:
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;
 


Test patch: