bevy/crates/bevy_ecs/src/world
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
..
entity_ref.rs Use question mark operator when possible (#11865) 2024-02-14 18:44:33 +00:00
error.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
identifier.rs impl ExclusiveSystemParam for WorldId (#11164) 2024-01-01 15:59:53 +00:00
mod.rs Add a method for detecting changes within a certain scope (#11687) 2024-02-12 15:09:11 +00:00
spawn_batch.rs Fix some nightly warnings (#9672) 2023-09-02 18:35:06 +00:00
unsafe_world_cell.rs Replace pointer castings (as) by their API equivalent (#11818) 2024-02-11 23:19:36 +00:00
world_cell.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00