Skip to content

Commit 1e79f4a

Browse files
authored
chore: clippy fix (#2174)
1 parent e932599 commit 1e79f4a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/noirc_evaluator/src/brillig/brillig_gen/brillig_block.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ impl<'block> BrilligBlock<'block> {
776776
fn convert_ssa_value(&mut self, value_id: ValueId, dfg: &DataFlowGraph) -> RegisterOrMemory {
777777
let value = &dfg[value_id];
778778

779-
let variable = match value {
779+
match value {
780780
Value::Param { .. } | Value::Instruction { .. } => {
781781
// All block parameters and instruction results should have already been
782782
// converted to registers so we fetch from the cache.
@@ -843,8 +843,7 @@ impl<'block> BrilligBlock<'block> {
843843
_ => {
844844
todo!("ICE: Cannot convert value {value:?}")
845845
}
846-
};
847-
variable
846+
}
848847
}
849848

850849
/// Converts an SSA `ValueId` into a `RegisterIndex`. Initializes if necessary.

0 commit comments

Comments
 (0)