bevy/crates/bevy_state
Jean Mertz 23dbcf9215
impl Default for StateScoped<S: Default> (#17401)
This allows this:

```rust
#[derive(Component)]
#[require(StateScoped<MyState>(StateScoped(MyState)))]
struct ComponentA;
```

To be shortened to this:

```rust
#[derive(Component)]
#[require(StateScoped<MyState>)]
struct ComponentA;
```

When `MyState` implements `Default`.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
2025-01-17 01:19:09 +00:00
..
macros Bump Version after Release (#17176) 2025-01-06 00:04:44 +00:00
src impl Default for StateScoped<S: Default> (#17401) 2025-01-17 01:19:09 +00:00
Cargo.toml Bump Version after Release (#17176) 2025-01-06 00:04:44 +00:00