Use new enum default method throughout code base #5153
Labels
C-Code-Quality
A section of code that is hard to understand or change
D-Trivial
Nice and easy! A great choice to get started with Bevy
We can now use #[derive(Default)] on enum types!
This is clearer and more idiomatic, as it puts the default values directly on the struct definition.
We should migrate to this pattern throughout the code base; search for
impl Default for
to find candidates.The text was updated successfully, but these errors were encountered: