Skip to content

Lint: Unit components should implement Default #211

@BD103

Description

@BD103

See bevyengine/bevy#17052 for context.

Unit structs that implement Component should also implement Default, so they can be used with required components.

- #[derive(Component)]
+ #[derive(Component, Default)]
pub struct IsDefaultUiCamera;

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterRelated to the linter and custom lintsC-FeatureMake something new possibleD-StraightforwardSimple bug fixes and API improvements, docs, test and examples

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions