forked from M-Labs/nac3
nac3core: fix clippy warning
This commit is contained in:
parent
c6f75c8bde
commit
664e02cec4
|
@ -282,7 +282,8 @@ pub fn gen_func<'ctx, G: CodeGenerator + ?Sized>(
|
||||||
let b = task.store.to_unifier_type(&mut unifier, &primitives, *b, &mut cache);
|
let b = task.store.to_unifier_type(&mut unifier, &primitives, *b, &mut cache);
|
||||||
unifier.unify(*a, b).or_else(|err| {
|
unifier.unify(*a, b).or_else(|err| {
|
||||||
if matches!(&*unifier.get_ty(*a), TypeEnum::TRigidVar { .. }) {
|
if matches!(&*unifier.get_ty(*a), TypeEnum::TRigidVar { .. }) {
|
||||||
Ok(unifier.replace_rigid_var(*a, b))
|
unifier.replace_rigid_var(*a, b);
|
||||||
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
Err(err)
|
Err(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue