mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 03:33:44 +03:00
forgot to push fmted code
This commit is contained in:
parent
317fc08fc5
commit
e0fdb73435
@ -125,13 +125,11 @@ impl FromAst<leo_ast::ArrayInlineExpression> for ArrayInlineExpression {
|
||||
expected_item = match expr {
|
||||
SpreadOrExpression::Expression(e) => {
|
||||
match Arc::<Expression>::from_ast(scope, e, expected_item.clone()) {
|
||||
Ok(expr) => {
|
||||
expr.get_type().map(Type::partial)
|
||||
},
|
||||
Ok(expr) => expr.get_type().map(Type::partial),
|
||||
Err(_) => continue,
|
||||
}
|
||||
},
|
||||
_ => None
|
||||
}
|
||||
_ => None,
|
||||
};
|
||||
|
||||
if expected_item.is_some() {
|
||||
|
@ -161,9 +161,7 @@ impl FromAst<leo_ast::ValueExpression> for Constant {
|
||||
}
|
||||
}
|
||||
Implicit(value, span) => match expected_type {
|
||||
None => {
|
||||
return Err(AsgConvertError::unresolved_type("unknown", span))
|
||||
},
|
||||
None => return Err(AsgConvertError::unresolved_type("unknown", span)),
|
||||
Some(PartialType::Integer(Some(sub_type), _)) | Some(PartialType::Integer(None, Some(sub_type))) => {
|
||||
Constant {
|
||||
parent: RefCell::new(None),
|
||||
|
Loading…
Reference in New Issue
Block a user