Skip to content

Commit

Permalink
Implement Debug for MediaControls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinono3 committed Jan 5, 2024
1 parent 2b1e31a commit 31b6783
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mod config;
mod platform;

use std::time::Duration;
use std::{fmt::Debug, time::Duration};

pub use config::*;
pub use platform::{Error, MediaControls};
Expand Down Expand Up @@ -70,3 +70,10 @@ impl Drop for MediaControls {
self.detach().ok();
}
}

impl Debug for MediaControls {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str("MediaControls")?;
Ok(())
}
}

0 comments on commit 31b6783

Please sign in to comment.