We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e47bef commit 7f66178Copy full SHA for 7f66178
crates/ide-completion/src/completions/flyimport.rs
@@ -239,7 +239,7 @@ fn import_on_the_fly(
239
if matches!(location, TypeLocation::TypeBound) {
240
matches!(ty, ModuleDef::Trait(_))
241
} else if matches!(location, TypeLocation::ImplTrait) {
242
- matches!(ty, ModuleDef::Trait(_)) || matches!(ty, ModuleDef::Module(_))
+ matches!(ty, ModuleDef::Trait(_) | ModuleDef::Module(_))
243
} else {
244
true
245
}
0 commit comments