bevy/crates/bevy_ecs/src/observer
MiniaczQ 5289e18e0b
System param validation for observers, system registry and run once (#15526)
# Objective

Fixes #15394

## Solution

Observers now validate params.

System registry has a new error variant for when system running fails
due to invalid parameters.

Run once now returns a `Result<Out, RunOnceError>` instead of `Out`.
This is more inline with system registry, which also returns a result.

I'll address warning messages in #15500.

## Testing

Added one test for each case.

---

## Migration Guide

- `RunSystemOnce::run_system_once` and
`RunSystemOnce::run_system_once_with` now return a `Result<Out>` instead
of just `Out`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Zachary Harrold <zac@harrold.com.au>
2024-09-30 01:00:39 +00:00
..
entity_observer.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
mod.rs System param validation for observers, system registry and run once (#15526) 2024-09-30 01:00:39 +00:00
runner.rs System param validation for observers, system registry and run once (#15526) 2024-09-30 01:00:39 +00:00
trigger_event.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00