Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdelajonquieresonos committed Dec 9, 2024
1 parent da47b81 commit 8b27504
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metal/src/rewrite_rules/rewire_metal_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ pub fn rewire_metal_sync_after_const(
rule_ensure!(sync_cpu_op.kind == MetalSyncKind::ToCpu);

let mut patch = TypedModelPatch::default();
let out =
patch.wire_node(format!("{node_name}"), Const(cpu_const.into(), None), &[])?;
let out = patch.wire_node(node_name.to_string(), Const(cpu_const.into(), None), &[])?;
patch.shunt_outside(model, sync_cpu.id.into(), out[0])?;
Ok(Some(patch))
}

0 comments on commit 8b27504

Please sign in to comment.