Fmt; clippy

This commit is contained in:
d0cd 2022-10-31 13:16:32 -07:00
parent e2170e0d55
commit b32bfba376

View File

@ -145,8 +145,12 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> {
// Case where `access.name` is a member of the struct.
Some(Member { type_, .. }) => {
// Check that the type of `access.name` is the same as `expected`.
return Some(self.assert_and_return_type(type_.clone(), expected, access.span()));
},
return Some(self.assert_and_return_type(
type_.clone(),
expected,
access.span(),
));
}
// Case where `access.name` is not a member of the struct.
None => {
self.emit_err(TypeCheckerError::invalid_struct_variable(