clippy fixes
This commit is contained in:
parent
665a8dec67
commit
2f2be39813
|
@ -276,12 +276,14 @@ impl<'a> CodeGenerator<'a> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ValueConstructorVariant::ModuleFn { builtin, .. } => {
|
ValueConstructorVariant::ModuleFn {
|
||||||
if let Some(func) = builtin {
|
builtin: Some(func),
|
||||||
|
..
|
||||||
|
} => {
|
||||||
ir_stack.push(Air::Builtin {
|
ir_stack.push(Air::Builtin {
|
||||||
scope: scope.clone(),
|
scope: scope.clone(),
|
||||||
count: func.arity(),
|
count: func.arity(),
|
||||||
func: func.clone(),
|
func: *func,
|
||||||
tipo: tipo.clone(),
|
tipo: tipo.clone(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -302,9 +304,9 @@ impl<'a> CodeGenerator<'a> {
|
||||||
} else {
|
} else {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
_ => {}
|
_ => {}
|
||||||
},
|
},
|
||||||
TypedExpr::ModuleSelect {
|
TypedExpr::ModuleSelect {
|
||||||
|
@ -364,7 +366,7 @@ impl<'a> CodeGenerator<'a> {
|
||||||
ir_stack.push(Air::Builtin {
|
ir_stack.push(Air::Builtin {
|
||||||
scope: scope.clone(),
|
scope: scope.clone(),
|
||||||
count: func.arity(),
|
count: func.arity(),
|
||||||
func: func.clone(),
|
func: *func,
|
||||||
tipo: tipo.clone(),
|
tipo: tipo.clone(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue