mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-27 03:21:49 +03:00
commit
9541e124f6
@ -13,7 +13,7 @@
|
||||
|
||||
// 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/>.
|
||||
|
||||
#![allow(clippy::from_over_into)]
|
||||
#[macro_use]
|
||||
extern crate thiserror;
|
||||
|
||||
|
@ -102,7 +102,7 @@ impl FromAst<leo_ast::AssignStatement> for Arc<Statement> {
|
||||
.as_ref()
|
||||
.map(
|
||||
|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()?;
|
||||
@ -110,7 +110,7 @@ impl FromAst<leo_ast::AssignStatement> for Arc<Statement> {
|
||||
.as_ref()
|
||||
.map(
|
||||
|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()?;
|
||||
|
@ -46,9 +46,7 @@ impl FromAst<leo_ast::ConditionalStatement> for ConditionalStatement {
|
||||
let next = statement
|
||||
.next
|
||||
.as_deref()
|
||||
.map(|next| -> Result<Arc<Statement>, AsgConvertError> {
|
||||
Ok(Arc::<Statement>::from_ast(scope, next, None)?)
|
||||
})
|
||||
.map(|next| -> Result<Arc<Statement>, AsgConvertError> { Arc::<Statement>::from_ast(scope, next, None) })
|
||||
.transpose()?;
|
||||
|
||||
Ok(ConditionalStatement {
|
||||
|
Loading…
Reference in New Issue
Block a user