-
-
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
[Merged by Bors] - Add infallible resource getters for WorldCell
#4104
Conversation
😆 I intentionally didn't add these, because I think we should pursue #3939 instead. However, this is a perfectly good change in the meantime. |
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.
PR looks perfect; I have no complaints.
Ah, that's helpful context. Yeah, in the meantime this reduces noise and more importantly provides useful panic messages. The |
Yeah, they're not :) I successfully replaced it with a |
@aevyrie I'm able to merge this now, and this is certainly trivial. Can you rebase? |
3e3eb79
to
32ababd
Compare
@alice-i-cecile done, pending CI. |
bors r+ |
WorldCell
WorldCell
# Objective - Eliminate all `worldcell.get_resource().unwrap()` cases. - Provide helpful messages on panic. ## Solution - Adds infallible resource getters to `WorldCell`, mirroring `World`.
# Objective - Eliminate all `worldcell.get_resource().unwrap()` cases. - Provide helpful messages on panic. ## Solution - Adds infallible resource getters to `WorldCell`, mirroring `World`.
Objective
worldcell.get_resource().unwrap()
cases.Solution
WorldCell
, mirroringWorld
.