mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +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>()` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |