From 99d31fb28f5a49747a6b8f9e59ff2c9c58a2b5be Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sun, 3 Nov 2024 18:51:58 +0100 Subject: [PATCH] better devbugprinting --- src/playbin2.rs | 8 ++++---- src/signal.rs | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/playbin2.rs b/src/playbin2.rs index f6f96cf..63ab22c 100644 --- a/src/playbin2.rs +++ b/src/playbin2.rs @@ -190,25 +190,25 @@ where 0 => { assert_eq!(&event.name, "volume"); self.volume_changed.emit(self, ()); - println!("new volume! {:?}", self.volume()); + dbg!(self.volume()); } 1 => { assert_eq!(&event.name, "mute"); self.muted_changed.emit(self, ()); - println!("new muted! {:?}", self.muted()); + dbg!(self.muted()); } 2 => { assert_eq!(&event.name, "pause"); self.paused_changed.emit(self, ()); - println!("new paused! {:?}", self.paused()); + dbg!(self.paused()); } 3 => { assert_eq!(&event.name, "playlist-pos"); self.current_entry_changed.emit(self, ()); - println!("new current_entry! {:?}", self.current_entry()); + dbg!(self.current_entry()); } _ => unreachable!(), diff --git a/src/signal.rs b/src/signal.rs index 946093a..6dfb290 100644 --- a/src/signal.rs +++ b/src/signal.rs @@ -121,7 +121,6 @@ impl SignalEmitter { handlers.swap(i, i + skip); } - println!("emitted to {i} listeners"); handlers.truncate(i); } }