Return a Result from Image::resize #19376
Labels
A-Rendering
Drawing game state to the screen
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Uncontroversial
This work is generally agreed upon
Nit: It's probably out of scope for this PR, but setting the size when we don't have any data feels weird. I'd put this in the condition 🤔 (and comment that it does nothing when called with a
self.data
equal toNone
.The best would probably to return an
Error
, so user can react, but asself.data
is exposed the test can just exist in user space.Originally posted by @Vrixyz in #19116 (comment)
The text was updated successfully, but these errors were encountered: