Skip to content

Commit b9d296f

Browse files
committed
IntoDeserializer for &RawValue
1 parent 4ea34a2 commit b9d296f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/raw.rs

+8
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,14 @@ impl<'de> MapAccess<'de> for BorrowedRawDeserializer<'de> {
528528
}
529529
}
530530

531+
impl<'de> IntoDeserializer<'de, Error> for &'de RawValue {
532+
type Deserializer = &'de RawValue;
533+
534+
fn into_deserializer(self) -> Self::Deserializer {
535+
self
536+
}
537+
}
538+
531539
impl<'de> Deserializer<'de> for &'de RawValue {
532540
type Error = Error;
533541

0 commit comments

Comments
 (0)