[Merged by Bors] - Add infallible resource getters for WorldCell#4104
[Merged by Bors] - Add infallible resource getters for WorldCell#4104aevyrie wants to merge 2 commits intobevyengine:mainfrom
WorldCell#4104Conversation
|
😆 I intentionally didn't add these, because I think we should pursue #3939 instead. However, this is a perfectly good change in the meantime. |
alice-i-cecile
left a comment
There was a problem hiding this comment.
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+ |
WorldCellWorldCell
# 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.