mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-30 22:41:31 +00:00
Revert "Allow borrowing from str's IntoDeserializer"
This reverts commit 30e8c84d0102957f77eab058033f5a81eb073815.
This commit is contained in:
parent
6279b0d930
commit
b8a6e68322
@ -290,7 +290,7 @@ pub struct StrDeserializer<'a, E> {
|
||||
marker: PhantomData<E>,
|
||||
}
|
||||
|
||||
impl<'a, E> IntoDeserializer<'a, E> for &'a str
|
||||
impl<'de, 'a, E> IntoDeserializer<'de, E> for &'a str
|
||||
where
|
||||
E: de::Error,
|
||||
{
|
||||
@ -304,7 +304,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<'de, E> de::Deserializer<'de> for StrDeserializer<'de, E>
|
||||
impl<'de, 'a, E> de::Deserializer<'de> for StrDeserializer<'a, E>
|
||||
where
|
||||
E: de::Error,
|
||||
{
|
||||
@ -314,7 +314,7 @@ where
|
||||
where
|
||||
V: de::Visitor<'de>,
|
||||
{
|
||||
visitor.visit_borrowed_str(self.value)
|
||||
visitor.visit_str(self.value)
|
||||
}
|
||||
|
||||
fn deserialize_enum<V>(
|
||||
@ -338,7 +338,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<'de, E> de::EnumAccess<'de> for StrDeserializer<'de, E>
|
||||
impl<'de, 'a, E> de::EnumAccess<'de> for StrDeserializer<'a, E>
|
||||
where
|
||||
E: de::Error,
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user