mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 03:23:20 +00:00
69e9a47d92
# Objective A user on Discord couldn't derive SystemParam for this Struct: ```rs #[derive(SystemParam)] pub struct SpatialQuery<'w, 's, Q: WorldQuery + Send + Sync + 'static, F: WorldQuery + Send + Sync + 'static = ()> where F::Fetch: FilterFetch, { query: Query<'w, 's, (C, &'static Transform), F>, } ``` ## Solution 1. The `where`-clause is now also copied to the `SystemParamFetch` impl Block. 2. The `SystemParamState` impl Block no longer gets any defaults for generics Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |