clippy fixes

This commit is contained in:
Kasey White 2023-02-26 00:06:24 -05:00 committed by Kasey
parent 665a8dec67
commit 2f2be39813
1 changed files with 26 additions and 24 deletions

View File

@ -276,12 +276,14 @@ impl<'a> CodeGenerator<'a> {
return;
}
}
ValueConstructorVariant::ModuleFn { builtin, .. } => {
if let Some(func) = builtin {
ValueConstructorVariant::ModuleFn {
builtin: Some(func),
..
} => {
ir_stack.push(Air::Builtin {
scope: scope.clone(),
count: func.arity(),
func: func.clone(),
func: *func,
tipo: tipo.clone(),
});
@ -302,9 +304,9 @@ impl<'a> CodeGenerator<'a> {
} else {
unreachable!()
}
return;
}
}
_ => {}
},
TypedExpr::ModuleSelect {
@ -364,7 +366,7 @@ impl<'a> CodeGenerator<'a> {
ir_stack.push(Air::Builtin {
scope: scope.clone(),
count: func.arity(),
func: func.clone(),
func: *func,
tipo: tipo.clone(),
});