Skip to content

Fix batch stepper#7

Open
atravkovs wants to merge 2 commits intotopokel:0.4.0from
atravkovs:fix-batch-pr
Open

Fix batch stepper#7
atravkovs wants to merge 2 commits intotopokel:0.4.0from
atravkovs:fix-batch-pr

Conversation

@atravkovs
Copy link
Copy Markdown

When trying to run Batch Example and putting dispatcher.dispatch(&world); in a loop:

loop {
    dispatcher.dispatch(&world);
}

I have encountered the following error: thread '<unnamed>' panicked at 'Tried to fetch data, but it was already borrowed mutably.

Investigation revealed that it was because of a mutable borrow in systems/batch.rs.

This PR comes with the changes that allowed me to deal with the error, though I am newish to rust and suppose it is not the most efficient way of dealing with this problem.

@atravkovs atravkovs requested a review from topokel February 23, 2020 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant