Skip to content

Use new enum default method throughout code base #5153

@alice-i-cecile

Description

@alice-i-cecile

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-Code-QualityA section of code that is hard to understand or changeD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions