Skip to content

Commit 990e2f9

Browse files
committed
Remove obsolete utilities
The `OnDrop` struct is no longer used, so just remove it. It's easy to add back if we need it in the future.
1 parent ff9f6f4 commit 990e2f9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/util.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -318,20 +318,6 @@ where
318318
}
319319
}
320320

321-
#[allow(dead_code)]
322-
pub(crate) struct OnDrop<F>(pub F)
323-
where
324-
F: Fn();
325-
326-
impl<F> Drop for OnDrop<F>
327-
where
328-
F: Fn(),
329-
{
330-
fn drop(&mut self) {
331-
(self.0)()
332-
}
333-
}
334-
335321
/// An abstraction over asynchronous runtimes.
336322
///
337323
/// There are several asynchronous runtimes available for Rust. By default

0 commit comments

Comments
 (0)