Skip to content

Commit

Permalink
PR: s/open()/peek()/
Browse files Browse the repository at this point in the history
  • Loading branch information
shua committed Jul 1, 2024
1 parent 87873d9 commit 8b5e7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/formality-check/src/adts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl super::Check<'_> {

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

0 comments on commit 8b5e7a2

Please sign in to comment.