Skip to content

Commit

Permalink
fix clippy warnings in code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Sep 13, 2023
1 parent 9782c09 commit d042d55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/aiken-lang/src/gen_uplc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,7 @@ impl<'a> CodeGenerator<'a> {
AirTree::list_expose(
defined_heads
.into_iter()
.zip(defined_tails.into_iter())
.zip(defined_tails)
.filter(|(head, _)| head != "_")
.map(|(head, tail)| (tail, head))
.collect_vec(),
Expand Down Expand Up @@ -3066,7 +3066,7 @@ impl<'a> CodeGenerator<'a> {
let mono_types: IndexMap<u64, Arc<Type>> = if !function_def_types.is_empty() {
function_def_types
.into_iter()
.zip(function_var_types.into_iter())
.zip(function_var_types)
.flat_map(|(func_tipo, var_tipo)| {
get_generic_id_and_type(&func_tipo, &var_tipo)
})
Expand Down Expand Up @@ -3372,7 +3372,7 @@ impl<'a> CodeGenerator<'a> {
UplcType::Pair(UplcType::Data.into(), UplcType::Data.into()),
convert_keys
.into_iter()
.zip(convert_values.into_iter())
.zip(convert_values)
.map(|(key, value)| {
UplcConstant::ProtoPair(
UplcType::Data,
Expand Down

0 comments on commit d042d55

Please sign in to comment.