deref mut

This commit is contained in:
Evan Pratten 2021-04-26 17:20:28 -04:00
parent 0d453ed708
commit 8b7ee82387

View File

@ -39,3 +39,10 @@ impl std::ops::Deref for AudioPlayer {
&self.backend
}
}
impl std::ops::DerefMut for AudioPlayer {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.backend
}
}