dylint

derive_opportunity

What it does

Checks for data structures that could derive additional traits.

Why is this bad?

Not deriving the additional traits could be a missed opportunity.

Known problems

Example

#[derive(Default)]
struct S;

struct T(S);

Use instead:

#[derive(Default)]
struct S;

#[derive(Default)]
struct T(S);

Configuration