better devbugprinting
This commit is contained in:
parent
d4a2996eac
commit
99d31fb28f
2 changed files with 4 additions and 5 deletions
|
@ -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!(),
|
||||
|
|
|
@ -121,7 +121,6 @@ impl<E, T> SignalEmitter<E, T> {
|
|||
handlers.swap(i, i + skip);
|
||||
}
|
||||
|
||||
println!("emitted to {i} listeners");
|
||||
handlers.truncate(i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue