Skip to content

Commit 03e469b

Browse files
committed
Format
1 parent af68147 commit 03e469b

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

vhdl_lang/src/analysis/package_instance.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,14 @@ impl<'a> AnalyzeContext<'a, '_> {
8787
}
8888

8989
for uninst in other {
90-
let inst_result =
91-
if let Some(&typ) = mapping.get(&uninst.id()) {
92-
self.finalize_instance(typ.into(), &mapping, uninst, &nested)
93-
} else {
94-
// We ignore diagnostics here, for example when adding implicit operators EQ and NE for interface types
95-
// They can collide if there are more than one interface type that map to the same actual type
96-
self.instantiate(Some(ent), &mapping, uninst, &nested)
97-
.inspect(|inst| nested.add(inst, &mut NullDiagnostics))
98-
};
90+
let inst_result = if let Some(&typ) = mapping.get(&uninst.id()) {
91+
self.finalize_instance(typ.into(), &mapping, uninst, &nested)
92+
} else {
93+
// We ignore diagnostics here, for example when adding implicit operators EQ and NE for interface types
94+
// They can collide if there are more than one interface type that map to the same actual type
95+
self.instantiate(Some(ent), &mapping, uninst, &nested)
96+
.inspect(|inst| nested.add(inst, &mut NullDiagnostics))
97+
};
9998

10099
match inst_result {
101100
Ok(inst) => {

0 commit comments

Comments
 (0)