Skip to content

new_without_default_derive triggers on types which cannot #[derive(Default)] #1890

Closed

Description

The lint seems to trigger on any function with the signature fn new() -> Self. #[derive(Default)] requires a default bound on all type parameters, even if those types do not appear in the actual type body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions