fix clippy warnings in code gen
This commit is contained in:
parent
9782c094b7
commit
d042d55d42
|
@ -2052,7 +2052,7 @@ impl<'a> CodeGenerator<'a> {
|
||||||
AirTree::list_expose(
|
AirTree::list_expose(
|
||||||
defined_heads
|
defined_heads
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(defined_tails.into_iter())
|
.zip(defined_tails)
|
||||||
.filter(|(head, _)| head != "_")
|
.filter(|(head, _)| head != "_")
|
||||||
.map(|(head, tail)| (tail, head))
|
.map(|(head, tail)| (tail, head))
|
||||||
.collect_vec(),
|
.collect_vec(),
|
||||||
|
@ -3066,7 +3066,7 @@ impl<'a> CodeGenerator<'a> {
|
||||||
let mono_types: IndexMap<u64, Arc<Type>> = if !function_def_types.is_empty() {
|
let mono_types: IndexMap<u64, Arc<Type>> = if !function_def_types.is_empty() {
|
||||||
function_def_types
|
function_def_types
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(function_var_types.into_iter())
|
.zip(function_var_types)
|
||||||
.flat_map(|(func_tipo, var_tipo)| {
|
.flat_map(|(func_tipo, var_tipo)| {
|
||||||
get_generic_id_and_type(&func_tipo, &var_tipo)
|
get_generic_id_and_type(&func_tipo, &var_tipo)
|
||||||
})
|
})
|
||||||
|
@ -3372,7 +3372,7 @@ impl<'a> CodeGenerator<'a> {
|
||||||
UplcType::Pair(UplcType::Data.into(), UplcType::Data.into()),
|
UplcType::Pair(UplcType::Data.into(), UplcType::Data.into()),
|
||||||
convert_keys
|
convert_keys
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(convert_values.into_iter())
|
.zip(convert_values)
|
||||||
.map(|(key, value)| {
|
.map(|(key, value)| {
|
||||||
UplcConstant::ProtoPair(
|
UplcConstant::ProtoPair(
|
||||||
UplcType::Data,
|
UplcType::Data,
|
||||||
|
|
Loading…
Reference in New Issue