Skip to content

lint unused (clippy) allow attributes #3122

Closed
@matthiaskrgr

Description

@matthiaskrgr
fn main() {
    #[cfg_attr(feature = "cargo-clippy", allow(useless_format))]
    let _ = String::from("hello");
}

It would be nice to have a message here that allow(uselss_format) is itself not effective and can be removed.
Basically I'd like to have unused clippy warning suppression linted. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions