Skip to content

Commit

Permalink
Merge pull request #2081 from dtolnay/accessunsized
Browse files Browse the repository at this point in the history
Enable unsized Map/SeqAccess types to use the impl for &mut
  • Loading branch information
dtolnay committed Aug 28, 2021
2 parents 2b92c80 + 3f120fb commit 87d41b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serde/src/de/mod.rs
Expand Up @@ -1714,7 +1714,7 @@ pub trait SeqAccess<'de> {
}
}

impl<'de, 'a, A> SeqAccess<'de> for &'a mut A
impl<'de, 'a, A: ?Sized> SeqAccess<'de> for &'a mut A
where
A: SeqAccess<'de>,
{
Expand Down Expand Up @@ -1867,7 +1867,7 @@ pub trait MapAccess<'de> {
}
}

impl<'de, 'a, A> MapAccess<'de> for &'a mut A
impl<'de, 'a, A: ?Sized> MapAccess<'de> for &'a mut A
where
A: MapAccess<'de>,
{
Expand Down

0 comments on commit 87d41b5

Please sign in to comment.