From 95e8c0ef9baf1ee0e71e1578fd69f82acc4a196e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Cardoso?= Date: Tue, 22 Oct 2024 10:57:45 -0300 Subject: [PATCH] src: lib: Implement Debug for Callbacks --- src/lib/callbacks.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/callbacks.rs b/src/lib/callbacks.rs index 463b77dc..5c248cce 100644 --- a/src/lib/callbacks.rs +++ b/src/lib/callbacks.rs @@ -12,6 +12,12 @@ pub struct Callbacks { callbacks: Arc>>>, } +impl std::fmt::Debug for Callbacks { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("Callback").finish() + } +} + impl Callbacks { pub fn new() -> Self { Self {