Skip to content

Commit

Permalink
"clean-up"
Browse files Browse the repository at this point in the history
  • Loading branch information
crypdoughdoteth committed Oct 25, 2024
1 parent 52efd32 commit 983fd45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/type_checker/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::{
syntax::is_type,
};

use super::{Error, FullyQualified, TypeChecker, TypeInfo, TypedFnEnv};
use super::{FullyQualified, TypeChecker, TypeInfo, TypedFnEnv};

/// Keeps track of the signature of a user-defined function.
#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down Expand Up @@ -342,10 +342,10 @@ impl<B: Backend> TypeChecker<B> {
match (&lhs_node.typ, &rhs_node.typ) {
(TyKind::Field { .. }, TyKind::Field { .. }) => (),
_ => {
return Err(self.error(
Err(self.error(
ErrorKind::MismatchType(lhs_node.typ.clone(), rhs_node.typ.clone()),
expr.span,
))
))?
}
}
}
Expand Down

0 comments on commit 983fd45

Please sign in to comment.