bevy/crates/bevy_ecs/src/query
Pascal Hertleif 0c2c52a0cd
Derive Error for more error types (#10240)
# Objective

Align all error-like types to implement `Error`.

Fixes  #10176

## Solution

- Derive `Error` on more types
- Refactor instances of manual implementations that could be derived

This adds thiserror as a dependency to bevy_transform, which might
increase compilation time -- but I don't know of any situation where you
might only use that but not any other crate that pulls in bevy_utils.

The `contributors` example has a `LoadContributorsError` type, but as
it's an example I have not updated it. Doing that would mean either
having a `use bevy_internal::utils::thiserror::Error;` in an example
file, or adding `thiserror` as a dev-dependency to the main `bevy`
crate.

---

## Changelog

- All `…Error` types now implement the `Error` trait
2023-10-28 22:20:37 +00:00
..
access.rs Allow disjoint mutable world access via EntityMut (#9419) 2023-08-28 23:30:59 +00:00
error.rs Derive Error for more error types (#10240) 2023-10-28 22:20:37 +00:00
fetch.rs Add mutual exclusion safety info on filter_fetch (#9836) 2023-09-19 21:49:33 +00:00
filter.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
iter.rs Fix safety invariants for WorldQuery::fetch and simplify cloning (#8246) 2023-07-25 21:16:22 +00:00
mod.rs Moved get_component(_unchecked_mut) from Query to QueryState (#9686) 2023-09-11 19:04:22 +00:00
par_iter.rs Round up for the batch size to improve par_iter performance (#9814) 2023-09-18 16:02:58 +00:00
state.rs Add a public API to ArchetypeGeneration/Id (#9825) 2023-10-02 12:54:45 +00:00