Skip to content

Commit

Permalink
invert if
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin0cheng authored and zbsz committed May 10, 2020
1 parent 5222a46 commit da80007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ra_hir_def/src/item_scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ impl PerNs {
AdtId::UnionId(_) => PerNs::types(def, v),
AdtId::EnumId(_) => PerNs::types(def, v),
AdtId::StructId(_) => {
if !has_constructor {
PerNs::types(def, v)
} else {
if has_constructor {
PerNs::both(def, def, v)
} else {
PerNs::types(def, v)
}
}
},
Expand Down

0 comments on commit da80007

Please sign in to comment.