Skip to content

default_trait_access should only fire on simple types #5975

Closed
@adrianheine

Description

@adrianheine

Calling std::cell::RefCell<std::collections::HashMap<R, futures::future::Shared<std::pin::Pin<std::boxed::Box<dyn futures::Future<Output = ()>>>>>>::default() is more clear than this expression

I don't agree

Calling std::marker::PhantomData<(L, B)>::default() is more clear than this expression

For PhantomData I think I always prefer Default::default().

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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