diff --git a/compiler/passes/src/type_checker/check_expressions.rs b/compiler/passes/src/type_checker/check_expressions.rs index 9c50799563..78761626d9 100644 --- a/compiler/passes/src/type_checker/check_expressions.rs +++ b/compiler/passes/src/type_checker/check_expressions.rs @@ -328,7 +328,8 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { match (t1, t2) { (Some(Type::Address), _) | (_, Some(Type::Address)) => { // Emit an error for address comparison. - self.handler.emit_err(TypeCheckerError::compare_address(input.span()).into()); + self.handler + .emit_err(TypeCheckerError::compare_address(input.span()).into()); } (Some(Type::Field), t2) => { // Assert rhs is field. diff --git a/leo/errors/src/errors/type_checker/type_checker_error.rs b/leo/errors/src/errors/type_checker/type_checker_error.rs index e2c33bfcce..4ab548ff65 100644 --- a/leo/errors/src/errors/type_checker/type_checker_error.rs +++ b/leo/errors/src/errors/type_checker/type_checker_error.rs @@ -268,7 +268,7 @@ create_messages!( @formatted compare_address { args: (), - msg: format!("Comparison `<, <=, >, >=` is not supported for the address type."), + msg: "Comparison `<, <=, >, >=` is not supported for the address type.", help: None, } );