bevy/crates
Johan Klokkhammer Helsing dea292d199 Derive thiserror::Error for HexColorError (#2740)
# Objective

- Make it easy to use HexColorError with `thiserror`, i.e. converting it into other error types.

Makes this possible:

```rust
#[derive(Debug, thiserror::Error)]
pub enum LdtkError {
    #[error("An error occured while deserializing")]
    Json(#[from] serde_json::Error),
    #[error("An error occured while parsing a color")]
    HexColor(#[from] bevy::render::color::HexColorError),
}
```

## Solution

- Derive thiserror::Error the same way we do elsewhere (see query.rs for instance)
2021-08-30 21:56:13 +00:00
..
bevy_app Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_asset update ndk-glue to 0.4 (#2684) 2021-08-19 01:02:15 +00:00
bevy_audio Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_core Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_derive Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_diagnostic Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_dylib Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_dynamic_plugin Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_ecs Document QueryState (#2298) 2021-08-25 23:56:24 +00:00
bevy_gilrs Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_gltf Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_input Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_internal update ndk-glue to 0.4 (#2684) 2021-08-19 01:02:15 +00:00
bevy_log Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_macro_utils Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_math Update glam requirement from 0.15.1 to 0.17.3 (#2500) 2021-08-19 01:32:31 +00:00
bevy_pbr Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_reflect Update glam requirement from 0.15.1 to 0.17.3 (#2500) 2021-08-19 01:32:31 +00:00
bevy_render Derive thiserror::Error for HexColorError (#2740) 2021-08-30 21:56:13 +00:00
bevy_scene System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
bevy_sprite Document collide args (#2721) 2021-08-24 18:07:51 +00:00
bevy_tasks Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_text System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
bevy_transform System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
bevy_ui Use Explicit Names for Flex Direction (#2672) 2021-08-24 01:50:21 +00:00
bevy_utils derive Debug, Clone for FixedState (StableAHash) (#2694) 2021-08-24 01:31:39 +00:00
bevy_wgpu Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_window Not me ... us (#2654) 2021-08-15 20:08:52 +00:00
bevy_winit Not me ... us (#2654) 2021-08-15 20:08:52 +00:00