Loosen bounds on IntoShared<T>

This commit is contained in:
bitfl0wer 2024-01-22 15:00:46 +01:00
parent 5372d2c475
commit 21699e5899
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ pub trait IntoShared {
fn into_shared(self) -> Shared<Self>; fn into_shared(self) -> Shared<Self>;
} }
impl<T: Composite<T> + Updateable + Clone + Debug + ?Sized> IntoShared for T { impl<T: Sized> IntoShared for T {
fn into_shared(self) -> Shared<Self> { fn into_shared(self) -> Shared<Self> {
Arc::new(RwLock::new(self)) Arc::new(RwLock::new(self))
} }