Tracks: Remove box around TrackState (#84)
Boxing is unnecessary since `TrackState` implements copy. Tested using `cargo make ready`.
This commit is contained in:
committed by
Kyle Simpson
parent
210e3ae584
commit
91d7542593
@@ -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))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user