Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackPhlox committed Nov 11, 2023
1 parent c7472e8 commit 7bbac6c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,17 @@ fn setup(mut commands: Commands, settings: Res<MidiInputSettings>) {

//Got issues with the taskpool rewrite : https://github.com/bevyengine/bevy/pull/10008
let thread_pool = IoTaskPool::get();
thread_pool.spawn({
MidiInputTask {
receiver: m_receiver,
sender: r_sender,
settings: settings.clone(),
input: None,
connection: None,
}
}).detach();
thread_pool
.spawn({
MidiInputTask {
receiver: m_receiver,
sender: r_sender,
settings: settings.clone(),
input: None,
connection: None,
}
})
.detach();

commands.insert_resource(MidiInput {
sender: m_sender,
Expand Down

0 comments on commit 7bbac6c

Please sign in to comment.