bevy/crates/bevy_scene/src
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
..
bundle.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
dynamic_scene_builder.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
dynamic_scene.rs Fix for SceneEntityMapper + hooks panic (#15405) 2024-09-24 17:37:23 +00:00
lib.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
scene_filter.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
scene_loader.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
scene_spawner.rs System param validation for observers, system registry and run once (#15526) 2024-09-30 01:00:39 +00:00
scene.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
serde.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00