diff options
| author | Botahamec <botahamec@outlook.com> | 2024-09-26 22:58:13 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2024-09-26 22:58:13 -0400 |
| commit | 2376ccee97c99d5c47c09fcf308a97aaf785a29e (patch) | |
| tree | 0aa7814c78a035929d494f60dec5daa925bed433 /src/poisonable.rs | |
| parent | 5f55113a6ead937fc8bc81e361abc09b3a1565f3 (diff) | |
Better into_inner and get_mut implementations
Diffstat (limited to 'src/poisonable.rs')
| -rw-r--r-- | src/poisonable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poisonable.rs b/src/poisonable.rs index a492084..6cc234e 100644 --- a/src/poisonable.rs +++ b/src/poisonable.rs @@ -35,7 +35,7 @@ struct PoisonFlag(#[cfg(panic = "unwind")] AtomicBool); /// [`into_inner`]: `PoisonError::into_inner` /// [`clear_poison`]: `Poisonable::clear_poison` #[derive(Debug, Default)] -pub struct Poisonable<L: Lockable + RawLock> { +pub struct Poisonable<L> { inner: L, poisoned: PoisonFlag, } |
