From 804831a1ca835be96fbe4d558899d57674978452 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 441b13247d..3da1a0bfe6 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()))