mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 15:15:47 +03:00
Fmt; clippy
This commit is contained in:
parent
e2170e0d55
commit
b32bfba376
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user