Skip to content

Commit 85d30f0

Browse files
committed
Format (I'm an idiot)
1 parent ad5aaf4 commit 85d30f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/typechecker.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,10 @@ impl<'a> Typechecker<'a> {
17371737
}
17381738

17391739
if simple_types.len() == 1 {
1740-
*simple_types.iter().next().expect("should have exactly 1 element")
1740+
*simple_types
1741+
.iter()
1742+
.next()
1743+
.expect("should have exactly 1 element")
17411744
} else {
17421745
self.oneof_types.push(simple_types);
17431746
self.push_type(Type::OneOf(OneOfId(self.oneof_types.len() - 1)))

0 commit comments

Comments
 (0)