Skip to content

remove redundant crate::x prefix in imports #17084

Description

@amab8901

What it does

tells u to remove redundant crate::x prefix in imports

Advantage

cut noise

Drawbacks

none AFAIK

Example

use crate::a::b::c::D

Could be written as:

use b::c::D

if this is written in in file a.rs

Comparison with existing lints

I couldn't find any lint that does anything like this

Additional Context

No response

Metadata

Metadata

Assignees

Labels

A-lintArea: New lints

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions