From 664e02cec4c5e1b1fed3b2d11fdb73f11ab0747e Mon Sep 17 00:00:00 2001 From: ychenfo Date: Mon, 22 Nov 2021 14:55:39 +0800 Subject: [PATCH] nac3core: fix clippy warning --- nac3core/src/codegen/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nac3core/src/codegen/mod.rs b/nac3core/src/codegen/mod.rs index 68dc804a..b6c94f93 100644 --- a/nac3core/src/codegen/mod.rs +++ b/nac3core/src/codegen/mod.rs @@ -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); unifier.unify(*a, b).or_else(|err| { if matches!(&*unifier.get_ty(*a), TypeEnum::TRigidVar { .. }) { - Ok(unifier.replace_rigid_var(*a, b)) + unifier.replace_rigid_var(*a, b); + Ok(()) } else { Err(err) }