Skip to content

Commit

Permalink
Enable unsized Map/SeqAccess types to use the impl for &mut
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 28, 2021
1 parent 2b92c80 commit 3f120fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serde/src/de/mod.rs
Original file line number Diff line number Diff line change
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 3f120fb

Please sign in to comment.