bevy/examples/games
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
..
alien_cake_addict.rs Allow clippy::type_complexity in more places. (#9796) 2023-10-02 21:55:16 +00:00
breakout.rs Use chain in breakout example (#10124) 2023-10-16 22:15:32 +00:00
contributors.rs Derive Error for more error types (#10240) 2023-10-28 22:20:37 +00:00
game_menu.rs Allow clippy::type_complexity in more places. (#9796) 2023-10-02 21:55:16 +00:00