clippy fix

This commit is contained in:
NotAFile 2022-01-20 19:51:09 +01:00
parent 120a3c59f4
commit f93530fe30
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ fn lower_process_statement(
let next_expr_wire = lower_expression(ctx, module, &assig.expr)?;
rtlil::CaseRule {
assign: vec![(next_sig.clone(), next_expr_wire)],
assign: vec![(next_sig, next_expr_wire)],
switches: vec![],
}
}
@ -233,7 +233,7 @@ fn desugar_expression<'a>(expr: parser::Expression<'a>) -> parser::Expression<'a
parser::Expression::Ident(_) => expr,
parser::Expression::Literal(_) => expr,
parser::Expression::Call(mut call) => {
let new_args = call.args.into_iter().map(|argex| desugar_expression(argex)).collect();
let new_args = call.args.into_iter().map(desugar_expression).collect();
call.args = new_args;
parser::Expression::Call(call)
},