mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 07:34:35 -05:00
fix: relax bounds on OrPoisoned blanket impls
This commit is contained in:
@@ -35,7 +35,7 @@ pub trait OrPoisoned {
|
|||||||
fn or_poisoned(self) -> Self::Inner;
|
fn or_poisoned(self) -> Self::Inner;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T> OrPoisoned
|
impl<'a, T: ?Sized> OrPoisoned
|
||||||
for Result<RwLockReadGuard<'a, T>, PoisonError<RwLockReadGuard<'a, T>>>
|
for Result<RwLockReadGuard<'a, T>, PoisonError<RwLockReadGuard<'a, T>>>
|
||||||
{
|
{
|
||||||
type Inner = RwLockReadGuard<'a, T>;
|
type Inner = RwLockReadGuard<'a, T>;
|
||||||
@@ -45,7 +45,7 @@ impl<'a, T> OrPoisoned
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T> OrPoisoned
|
impl<'a, T: ?Sized> OrPoisoned
|
||||||
for Result<RwLockWriteGuard<'a, T>, PoisonError<RwLockWriteGuard<'a, T>>>
|
for Result<RwLockWriteGuard<'a, T>, PoisonError<RwLockWriteGuard<'a, T>>>
|
||||||
{
|
{
|
||||||
type Inner = RwLockWriteGuard<'a, T>;
|
type Inner = RwLockWriteGuard<'a, T>;
|
||||||
@@ -55,7 +55,7 @@ impl<'a, T> OrPoisoned
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T> OrPoisoned for LockResult<MutexGuard<'a, T>> {
|
impl<'a, T: ?Sized> OrPoisoned for LockResult<MutexGuard<'a, T>> {
|
||||||
type Inner = MutexGuard<'a, T>;
|
type Inner = MutexGuard<'a, T>;
|
||||||
|
|
||||||
fn or_poisoned(self) -> Self::Inner {
|
fn or_poisoned(self) -> Self::Inner {
|
||||||
|
|||||||
Reference in New Issue
Block a user