Skip to content

Commit f68a254

Browse files
committed
remove an unused type from the reentrant lock tests
1 parent 1602a46 commit f68a254

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

std/src/sync/reentrant_lock/tests.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{ReentrantLock, ReentrantLockGuard};
1+
use super::ReentrantLock;
22
use crate::cell::RefCell;
33
use crate::sync::Arc;
44
use crate::thread;
@@ -51,10 +51,3 @@ fn trylock_works() {
5151
.unwrap();
5252
let _lock3 = l.try_lock();
5353
}
54-
55-
pub struct Answer<'a>(pub ReentrantLockGuard<'a, RefCell<u32>>);
56-
impl Drop for Answer<'_> {
57-
fn drop(&mut self) {
58-
*self.0.borrow_mut() = 42;
59-
}
60-
}

0 commit comments

Comments
 (0)