-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix bevymark crash #7404
Fix bevymark crash #7404
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use if let Some(window)
instead here: it's generally clearer IMO.
You could also use the new pipe adaptors and ?: I'd be happy with either option. |
@alice-i-cecile Done, it's now using |
Ah: I meant to wrap the entire block below that relies on In rust, I would use the |
@alice-i-cecile Done, now it's using system piping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! It's good to demo this pattern in more examples too.
That should not happen, the system you fixed is in stage I would wait for the new scheduler PR (#7267) to be merged (which changes a lot of that), and then try to reproduce the crash with it, and if that's still present try to find the root cause |
Alright, so should I close this? |
Yeah, let's close this out for now and leave the issue open :) |
Objective
Fixes #7403
Solution
windows.single()
withwindows.get_single()?
then use system piping to return early.