Remove ineffective ?Sized bound on weak rc Deserialize impls

These impls have both `T: ?Sized` and `T: Deserialize<'de>`. But
`Deserialize<'de>: Sized`.
This commit is contained in:
David Tolnay 2024-02-27 22:52:18 -08:00
parent c9cab490f7
commit 89139e2c11
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1908,7 +1908,7 @@ where
doc_cfg,
doc(cfg(all(feature = "rc", any(feature = "std", feature = "alloc"))))
)]
impl<'de, T: ?Sized> Deserialize<'de> for RcWeak<T>
impl<'de, T> Deserialize<'de> for RcWeak<T>
where
T: Deserialize<'de>,
{
@ -1930,7 +1930,7 @@ where
doc_cfg,
doc(cfg(all(feature = "rc", any(feature = "std", feature = "alloc"))))
)]
impl<'de, T: ?Sized> Deserialize<'de> for ArcWeak<T>
impl<'de, T> Deserialize<'de> for ArcWeak<T>
where
T: Deserialize<'de>,
{