From 8b275040f8acba5357db38cd9d11e3aa509c48b8 Mon Sep 17 00:00:00 2001 From: Hubert de La Jonquiere Date: Mon, 9 Dec 2024 17:39:45 +0100 Subject: [PATCH] Fix clippy --- metal/src/rewrite_rules/rewire_metal_sync.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metal/src/rewrite_rules/rewire_metal_sync.rs b/metal/src/rewrite_rules/rewire_metal_sync.rs index 0bc6fc0599..6e4ca43755 100644 --- a/metal/src/rewrite_rules/rewire_metal_sync.rs +++ b/metal/src/rewrite_rules/rewire_metal_sync.rs @@ -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)) }