forgot to push fmted code

This commit is contained in:
gluax 2021-02-17 11:33:54 -05:00
parent 317fc08fc5
commit e0fdb73435
2 changed files with 4 additions and 8 deletions

View File

@ -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() {

View File

@ -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),