mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 03:23:20 +00:00
8ca3d0462c
# Objective - Fix #4200 Currently, `#[derive(SystemParam)]` publicly exposes each field type, which makes it impossible to encapsulate private fields. ## Solution Previously, the fields were leaked because they were used as an input generic type to the macro-generated `SystemParam::State` struct. That type has been changed to store its state in a field with a specific type, instead of a generic type. --- ## Changelog - Fixed a bug that caused `#[derive(SystemParam)]` to leak the types of private fields. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |