Skip to content

Commit

Permalink
src: lib: Implement Debug for Callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Oct 22, 2024
1 parent e570937 commit 95e8c0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ pub struct Callbacks<T> {
callbacks: Arc<Mutex<IndexMap<usize, Callback<T>>>>,
}

impl<T> std::fmt::Debug for Callbacks<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Callback").finish()
}
}

impl<T> Callbacks<T> {
pub fn new() -> Self {
Self {
Expand Down

0 comments on commit 95e8c0e

Please sign in to comment.