remove an unused type from the reentrant lock tests
This commit is contained in:
parent
fecb7b4309
commit
df437a2af4
@ -1,4 +1,4 @@
|
||||
use super::{ReentrantLock, ReentrantLockGuard};
|
||||
use super::ReentrantLock;
|
||||
use crate::cell::RefCell;
|
||||
use crate::sync::Arc;
|
||||
use crate::thread;
|
||||
@ -51,10 +51,3 @@ fn trylock_works() {
|
||||
.unwrap();
|
||||
let _lock3 = l.try_lock();
|
||||
}
|
||||
|
||||
pub struct Answer<'a>(pub ReentrantLockGuard<'a, RefCell<u32>>);
|
||||
impl Drop for Answer<'_> {
|
||||
fn drop(&mut self) {
|
||||
*self.0.borrow_mut() = 42;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user