Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7f66178

Browse files
authored
Simplify
1 parent 0e47bef commit 7f66178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide-completion/src/completions/flyimport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ fn import_on_the_fly(
239239
if matches!(location, TypeLocation::TypeBound) {
240240
matches!(ty, ModuleDef::Trait(_))
241241
} else if matches!(location, TypeLocation::ImplTrait) {
242-
matches!(ty, ModuleDef::Trait(_)) || matches!(ty, ModuleDef::Module(_))
242+
matches!(ty, ModuleDef::Trait(_) | ModuleDef::Module(_))
243243
} else {
244244
true
245245
}

0 commit comments

Comments
 (0)