| 1 | use std::sync::{RwLock, RwLockWriteGuard, RwLockReadGuard}; |
| 2 | |
| 3 | pub trait HandyRwLock<T> { |
| 4 | fn wl(&self) -> RwLockWriteGuard<'_, T>; |
| 5 | fn rl(&self) -> RwLockReadGuard<'_, T>; |
| 6 | } |
| 7 | |
| 8 | impl<T> HandyRwLock<T> for RwLock<T> { |
| 9 | fn wl(&self) -> RwLockWriteGuard<'_, T> { |
nothing calls this directly
no outgoing calls
no test coverage detected