Skip to content

Commit

Permalink
Remove obsolete utilities
Browse files Browse the repository at this point in the history
The `OnDrop` struct is no longer used, so just remove it. It's easy to
add back if we need it in the future.
  • Loading branch information
benesch committed Aug 31, 2024
1 parent ff9f6f4 commit 990e2f9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,20 +318,6 @@ where
}
}

#[allow(dead_code)]
pub(crate) struct OnDrop<F>(pub F)
where
F: Fn();

impl<F> Drop for OnDrop<F>
where
F: Fn(),
{
fn drop(&mut self) {
(self.0)()
}
}

/// An abstraction over asynchronous runtimes.
///
/// There are several asynchronous runtimes available for Rust. By default
Expand Down

0 comments on commit 990e2f9

Please sign in to comment.