Serialize unsized RefCell, Mutex and RwLock

This commit is contained in:
Chayim Refael Friedman
2022-09-22 09:57:55 +03:00
parent f0346ae054
commit be3c37eb8b
2 changed files with 40 additions and 4 deletions
+3 -3
View File
@@ -522,7 +522,7 @@ where
}
}
impl<T> Serialize for RefCell<T>
impl<T: ?Sized> Serialize for RefCell<T>
where
T: Serialize,
{
@@ -538,7 +538,7 @@ where
}
#[cfg(feature = "std")]
impl<T> Serialize for Mutex<T>
impl<T: ?Sized> Serialize for Mutex<T>
where
T: Serialize,
{
@@ -554,7 +554,7 @@ where
}
#[cfg(feature = "std")]
impl<T> Serialize for RwLock<T>
impl<T: ?Sized> Serialize for RwLock<T>
where
T: Serialize,
{