mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
8018d62e41
# Objective - There are multiple instances of `let Some(x) = ... else { None };` throughout the project. - Because `Option<T>` implements [`Try`](https://doc.rust-lang.org/stable/std/ops/trait.Try.html), it can use the question mark `?` operator. ## Solution - Use question mark operator instead of `let Some(x) = ... else { None }`. --- There was another PR that did a similar thing a few weeks ago, but I couldn't find it. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |