Skip to content

extend redundant_allocation to Arc #7303

Closed
@lengyijun

Description

@lengyijun

Currently redundant_allocation check Rc and Box. And it can be extended to Arc, which is quite similar to Rc.
redundant_allocation should check:

Arc<Arc<T>>
Arc<Box<T>>
Arc<&T>

If it's ok, I can give a pr.

Metadata

Metadata

Assignees

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