From 24ba1e047c98e33a959573b99f5f9d1504c2fd89 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Sun, 26 Jul 2026 11:50:23 -0700 Subject: [PATCH] Box big enum variants to satisfy Clippy's lint warnings (#4292) * Box the `value` field of `NodeGraphMessage::SetInputValue` * Box the `ExecutionResponse` variant of `NodeGraphUpdate` * Box the `Layer` variant of `NodeTypeClickTargets` * Box the `Scope` variant of `ParsedValueSource` --- node-graph/node-macro/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-graph/node-macro/src/codegen.rs b/node-graph/node-macro/src/codegen.rs index 64aa2b8ea8..a7ff783c90 100644 --- a/node-graph/node-macro/src/codegen.rs +++ b/node-graph/node-macro/src/codegen.rs @@ -335,7 +335,7 @@ pub(crate) fn generate_node_code(crate_ident: &CrateIdent, parsed: &ParsedNodeFn } } ParsedValueSource::Scope(data) => { - if let syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Str(_), .. }) = &**data { + if let syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Str(_), .. }) = data.as_ref() { quote!(RegistryValueSource::Scope(#data)) } else { quote!(RegistryValueSource::Scope(#data.as_static_str()))