mirror of
https://github.com/bevyengine/bevy
synced 2024-11-30 00:20:20 +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>()` |
||
---|---|---|
.. | ||
3d_scene.rs | ||
load_gltf.rs | ||
msaa.rs | ||
orthographic.rs | ||
parenting.rs | ||
pbr.rs | ||
render_to_texture.rs | ||
spawner.rs | ||
texture.rs | ||
update_gltf_scene.rs | ||
wireframe.rs | ||
z_sort_debug.rs |