Skip to content

missing_inline_in_public_items warns about #[derive]-generated code #4861

Closed
@jonas-schievink

Description

@jonas-schievink

Example:

#![warn(clippy::missing_inline_in_public_items)]

#[derive(Debug)]
pub struct S {}
warning: missing `#[inline]` for a method
 --> src/lib.rs:3:10
  |
3 | #[derive(Debug)]
  |          ^^^^^

I don't think Clippy should warn about this, since the user cannot control the code in question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions