Skip to content

#[derive(Item)] makes clippy::needless_arbitrary_self_type complain #140

@FuzzyLitchi

Description

@FuzzyLitchi

🐛 Bug description

Deriving Item on a struct needlessly types the parameter and makes clippy complain.

🤔 Expected Behavior

Deriving Item should not needlessly type the self parameter. More info here.

👟 Steps to reproduce

Derive Item on a struct and run clippy.

#[derive(Item)]
pub struct Movie {
    #[dynomite(partition_key)]
    pub pk: String,

    #[dynomite(sort_key)]
    pub sk: Uuid,

    pub name: String,

    pub year: u16,
}

I simply ran cargo clippy

🌍 Your environment

dynomite version:
0.10.0

rustc version:
1.48.0-nightly

clippy version:
0.0.212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions