Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Feb 13, 2024
1 parent 0e47bef commit 7f66178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ide-completion/src/completions/flyimport.rs
Expand Up @@ -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
}
Expand Down

0 comments on commit 7f66178

Please sign in to comment.