Skip to content

Commit e0e821c

Browse files
committed
remove an unused type from the reentrant lock tests
1 parent fecb7b4 commit e0e821c

File tree

1 file changed

+0
-7
lines changed
  • library/std/src/sync/reentrant_lock

1 file changed

+0
-7
lines changed

library/std/src/sync/reentrant_lock/tests.rs

-7
Original file line numberDiff line numberDiff line change
@@ -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)