Skip to content

Commit 8b5e7a2

Browse files
committed
PR: s/open()/peek()/
1 parent 87873d9 commit 8b5e7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/formality-check/src/adts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ impl super::Check<'_> {
1111

1212
// names is used to check that there are no name conflicts
1313
let mut names = HashSet::new();
14-
for Variant { name, fields } in &adt.binder.open().1.variants {
14+
for Variant { name, fields } in &adt.binder.peek().variants {
1515
if !names.insert((name, None)) {
1616
bail!("variant \"{name:?}\" defined multiple times");
1717
}

0 commit comments

Comments
 (0)