bevy/crates/bevy_ui
BD103 8018d62e41
Use question mark operator when possible (#11865)
# 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.
2024-02-14 18:44:33 +00:00
..
src Use question mark operator when possible (#11865) 2024-02-14 18:44:33 +00:00
Cargo.toml Create serialize feature for bevy_ui (#11188) 2024-01-03 17:52:16 +00:00