Skip to content

Commit

Permalink
add some 'unneeded' muts
Browse files Browse the repository at this point in the history
  • Loading branch information
pufferfish101007 committed Sep 3, 2023
1 parent 13fa315 commit c80e413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ impl IrBlockVec for Vec<IrBlock> {
}
BlockOpcode::control_repeat => {
let substack_id = if let BlockArrayOrId::Id(id) = block_info.inputs.get("SUBSTACK").expect("missing SUBSTACK input for control_if").get_1().unwrap().clone().unwrap() { id } else { panic!("malformed SUBSTACK input") };
let condition_opcodes = vec![
let mut condition_opcodes = vec![

Check failure on line 763 in src/ir.rs

View workflow job for this annotation

GitHub Actions / Lint (clippy)

variable does not need to be mutable

Check warning on line 763 in src/ir.rs

View workflow job for this annotation

GitHub Actions / Build check

variable does not need to be mutable

Check warning on line 763 in src/ir.rs

View workflow job for this annotation

GitHub Actions / Build WASM & website

variable does not need to be mutable
IrOpcode::hq_goto_if { step: Some((target_id.clone(), block_info.next.clone().unwrap())), does_yield: true }.into(),
IrOpcode::hq_goto { step: Some((target_id.clone(), substack_id.clone())), does_yield: true }.into(),
];
Expand Down Expand Up @@ -800,7 +800,7 @@ impl IrBlockVec for Vec<IrBlock> {
}
BlockOpcode::control_repeat_until => {
let substack_id = if let BlockArrayOrId::Id(id) = block_info.inputs.get("SUBSTACK").expect("missing SUBSTACK input for control_if").get_1().unwrap().clone().unwrap() { id } else { panic!("malformed SUBSTACK input") };
let condition_opcodes = vec![
let mut condition_opcodes = vec![

Check failure on line 803 in src/ir.rs

View workflow job for this annotation

GitHub Actions / Lint (clippy)

variable does not need to be mutable

Check warning on line 803 in src/ir.rs

View workflow job for this annotation

GitHub Actions / Build check

variable does not need to be mutable

Check warning on line 803 in src/ir.rs

View workflow job for this annotation

GitHub Actions / Build WASM & website

variable does not need to be mutable
IrOpcode::hq_goto_if { step: Some((target_id.clone(), block_info.next.clone().unwrap())), does_yield: true }.into(),
IrOpcode::hq_goto { step: Some((target_id.clone(), substack_id.clone())), does_yield: true }.into(),
];
Expand Down

0 comments on commit c80e413

Please sign in to comment.