bevy/examples/ecs
MinerSebas 9effc3e9b3 Replace .insert_resource(T::default()) calls with init_resource::<T>() (#2807)
# 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>()`
2021-09-13 14:02:28 +00:00
..
component_change_detection.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
ecs_guide.rs Cleanup FromResources (#2601) 2021-08-13 22:21:34 +00:00
event.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
fixed_timestep.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
hierarchy.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
iter_combinations.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
parallel_query.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
removal_detection.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
startup_system.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
state.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
system_chaining.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
system_param.rs System Param Lifetime Split (#2605) 2021-08-15 20:51:53 +00:00
system_sets.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
timers.rs Replace .insert_resource(T::default()) calls with init_resource::<T>() (#2807) 2021-09-13 14:02:28 +00:00