mirror of
https://github.com/serde-rs/json.git
synced 2025-09-30 06:21:34 +00:00
IntoDeserializer for &RawValue
This commit is contained in:
parent
4ea34a2566
commit
b9d296f87d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user