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

@@ -26,8 +26,8 @@ pub enum TrackCommand {
AddEvent(EventData),
/// Run some closure on this track, with direct access to the core object.
Do(Box<dyn FnOnce(&mut Track) + Send + Sync + 'static>),
/// Request a read-only view of this track's state.
Request(Sender<Box<TrackState>>),
/// Request a copy of this track's state.
Request(Sender<TrackState>),
/// Change the loop count/strategy of this track.
Loop(LoopState),
/// Prompts a track's input to become live and usable, if it is not already.