mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-25 18:42:26 +03:00
cargo fmt
This commit is contained in:
parent
60f6b77629
commit
455603f0a4
compiler
@ -89,9 +89,7 @@ impl Node for ValueExpression {
|
||||
| Field(_, span)
|
||||
| Integer(_, _, span)
|
||||
| Scalar(_, span)
|
||||
| String(_, span) => {
|
||||
*span = new_span
|
||||
}
|
||||
| String(_, span) => *span = new_span,
|
||||
Char(character) => character.span = new_span,
|
||||
Group(group) => match &mut **group {
|
||||
GroupValue::Single(_, span) => *span = new_span,
|
||||
|
@ -176,8 +176,7 @@ impl<'a> TypeChecker<'a> {
|
||||
|
||||
// Allow `group` * `scalar` multiplication.
|
||||
match (t1.as_ref(), t2.as_ref()) {
|
||||
(Some(Type::Group), Some(Type::Scalar))
|
||||
| (Some(Type::Scalar), Some(Type::Group)) => {
|
||||
(Some(Type::Group), Some(Type::Scalar)) | (Some(Type::Scalar), Some(Type::Group)) => {
|
||||
Some(Type::Group)
|
||||
}
|
||||
_ => return_incorrect_type(t1, t2, expected),
|
||||
|
Loading…
Reference in New Issue
Block a user