Enable unsized Map/SeqAccess types to use the impl for &mut

This commit is contained in:
David Tolnay 2021-08-28 10:59:51 -07:00
parent 2b92c80cc1
commit 3f120fb355
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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>,
{
@ -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>,
{