Tracks: Remove box around TrackState (#84)

Boxing is unnecessary since `TrackState` implements copy.

Tested using `cargo make ready`.
This commit is contained in:
Vilgot Fredenberg
2021-06-29 15:58:21 +02:00
committed by Kyle Simpson
parent 210e3ae584
commit 91d7542593
3 changed files with 4 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ impl TrackHandle {
}
/// Request playback information and state from the audio context.
pub async fn get_info(&self) -> TrackResult<Box<TrackState>> {
pub async fn get_info(&self) -> TrackResult<TrackState> {
let (tx, rx) = flume::bounded(1);
self.send(TrackCommand::Request(tx))?;