From 983fd457b68478589b180a591223f248662e7b0f Mon Sep 17 00:00:00 2001 From: crypdoughdoteth Date: Fri, 25 Oct 2024 15:06:39 -0400 Subject: [PATCH] "clean-up" --- src/type_checker/checker.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/type_checker/checker.rs b/src/type_checker/checker.rs index adc6231c9..d1e041124 100644 --- a/src/type_checker/checker.rs +++ b/src/type_checker/checker.rs @@ -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)] @@ -342,10 +342,10 @@ impl TypeChecker { 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, - )) + ))? } } }