mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Simplify
This commit is contained in:
parent
0e47befaf3
commit
7f661782cd
@ -239,7 +239,7 @@ fn import_on_the_fly(
|
||||
if matches!(location, TypeLocation::TypeBound) {
|
||||
matches!(ty, ModuleDef::Trait(_))
|
||||
} else if matches!(location, TypeLocation::ImplTrait) {
|
||||
matches!(ty, ModuleDef::Trait(_)) || matches!(ty, ModuleDef::Module(_))
|
||||
matches!(ty, ModuleDef::Trait(_) | ModuleDef::Module(_))
|
||||
} else {
|
||||
true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user