From af980d02b6b3c4c9f74faf350ad4a7c2ebe450b8 Mon Sep 17 00:00:00 2001 From: Mark Koch Date: Wed, 18 Dec 2024 13:15:41 +0000 Subject: [PATCH] Golf --- hugr-llvm/src/extension/logic.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hugr-llvm/src/extension/logic.rs b/hugr-llvm/src/extension/logic.rs index 4cfaf8293..32a58923c 100644 --- a/hugr-llvm/src/extension/logic.rs +++ b/hugr-llvm/src/extension/logic.rs @@ -56,10 +56,7 @@ fn emit_logic_op<'c, H: HugrView>( } acc } - LogicOp::Not => { - let x = inputs[0]; - builder.build_not(x, "")? - } + LogicOp::Not => builder.build_not(inputs[0], "")?, op => { return Err(anyhow!("LogicOpEmitter: Unknown op: {op:?}")); }