mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
9effc3e9b3
# Objective I added the [INSERT_RESOURCE_WITH_DEFAULT](https://minersebas.github.io/bevy_lint/bevy_lint/static.INSERT_RESOURCE_WITH_DEFAULT.html) Lint to [bevy_lint](https://github.com/MinerSebas/bevy_lint) and while Testing it on bevy itself, I found several places where the Lint correctly triggered. ## Solution Replace `.insert_resource(T::default())` calls with `init_resource::<T>()` |
||
---|---|---|
.. | ||
component_change_detection.rs | ||
ecs_guide.rs | ||
event.rs | ||
fixed_timestep.rs | ||
hierarchy.rs | ||
iter_combinations.rs | ||
parallel_query.rs | ||
removal_detection.rs | ||
startup_system.rs | ||
state.rs | ||
system_chaining.rs | ||
system_param.rs | ||
system_sets.rs | ||
timers.rs |