Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shut down is broken #17

Open
kvark opened this issue Mar 23, 2020 · 0 comments
Open

Shut down is broken #17

kvark opened this issue Mar 23, 2020 · 0 comments

Comments

@kvark
Copy link
Member

kvark commented Mar 23, 2020

Everything after the event loop is unreachable:

warning: unreachable statement
    --> src/main.rs:1410:9
     |
1096 | /         events_loop.run(move |event, _, control_flow| {
1097 | |             *control_flow = ControlFlow::Poll;
1098 | |
1099 | |             match event {
...    |
1407 | |             }
1408 | |         });
     | |__________- any code following this expression is unreachable
1409 | 
1410 |           device.wait_idle()?;
     |           ^^^^^^^^^^^^^^^^^^^^ unreachable statement
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

No branches or pull requests

1 participant