Skip to content

Commit

Permalink
fix: cargo fmt & clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Vitkov committed Aug 4, 2023
1 parent 4b30bcb commit 93901d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/noirc_frontend/src/hir/type_check/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ impl<'interner> TypeChecker<'interner> {
}
});

if let (Type::Function(_, _, env_a), Type::Function(_, _, env_b)) = (&lvalue_type, &expr_type) {
env_a.unify(&env_b, span, &mut self.errors, || {
TypeCheckError::TypeMismatchWithSource {
rhs: expr_type.clone(),
lhs: lvalue_type.clone(),
span,
source: Source::Assignment,
}
if let (Type::Function(_, _, env_a), Type::Function(_, _, env_b)) =
(&lvalue_type, &expr_type)
{
env_a.unify(env_b, span, &mut self.errors, || TypeCheckError::TypeMismatchWithSource {
rhs: expr_type.clone(),
lhs: lvalue_type.clone(),
span,
source: Source::Assignment,
});
}
}
Expand Down

0 comments on commit 93901d6

Please sign in to comment.