mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 02:31:44 +03:00
clippy
This commit is contained in:
parent
c16a93ab44
commit
dd75133e22
@ -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.
|
||||
|
@ -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,
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user