mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 03:33:44 +03:00
commit
9541e124f6
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
#![allow(clippy::from_over_into)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate thiserror;
|
extern crate thiserror;
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ impl FromAst<leo_ast::AssignStatement> for Arc<Statement> {
|
|||||||
.as_ref()
|
.as_ref()
|
||||||
.map(
|
.map(
|
||||||
|left: &leo_ast::Expression| -> Result<Arc<Expression>, AsgConvertError> {
|
|left: &leo_ast::Expression| -> Result<Arc<Expression>, AsgConvertError> {
|
||||||
Ok(Arc::<Expression>::from_ast(scope, left, index_type.clone())?)
|
Arc::<Expression>::from_ast(scope, left, index_type.clone())
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.transpose()?;
|
.transpose()?;
|
||||||
@ -110,7 +110,7 @@ impl FromAst<leo_ast::AssignStatement> for Arc<Statement> {
|
|||||||
.as_ref()
|
.as_ref()
|
||||||
.map(
|
.map(
|
||||||
|right: &leo_ast::Expression| -> Result<Arc<Expression>, AsgConvertError> {
|
|right: &leo_ast::Expression| -> Result<Arc<Expression>, AsgConvertError> {
|
||||||
Ok(Arc::<Expression>::from_ast(scope, right, index_type)?)
|
Arc::<Expression>::from_ast(scope, right, index_type)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.transpose()?;
|
.transpose()?;
|
||||||
|
@ -46,9 +46,7 @@ impl FromAst<leo_ast::ConditionalStatement> for ConditionalStatement {
|
|||||||
let next = statement
|
let next = statement
|
||||||
.next
|
.next
|
||||||
.as_deref()
|
.as_deref()
|
||||||
.map(|next| -> Result<Arc<Statement>, AsgConvertError> {
|
.map(|next| -> Result<Arc<Statement>, AsgConvertError> { Arc::<Statement>::from_ast(scope, next, None) })
|
||||||
Ok(Arc::<Statement>::from_ast(scope, next, None)?)
|
|
||||||
})
|
|
||||||
.transpose()?;
|
.transpose()?;
|
||||||
|
|
||||||
Ok(ConditionalStatement {
|
Ok(ConditionalStatement {
|
||||||
|
Loading…
Reference in New Issue
Block a user