diff --git a/editor/src/node_graph_executor/runtime.rs b/editor/src/node_graph_executor/runtime.rs index 300cd5db93..f9c86d313f 100644 --- a/editor/src/node_graph_executor/runtime.rs +++ b/editor/src/node_graph_executor/runtime.rs @@ -179,6 +179,8 @@ impl Spawner for WasmSpawner { impl NodeRuntime { pub fn new(receiver: Receiver, sender: Sender) -> Self { #[cfg(not(target_family = "wasm"))] + // The box is a trait object, so `Box::default()` cannot name the concrete spawner. + #[allow(clippy::box_default)] let spawner: Box = Box::new(TokioSpawner::new()); #[cfg(target_family = "wasm")] let spawner: Box = Box::new(WasmSpawner); diff --git a/node-graph/libraries/graphic-types/src/boundary.rs b/node-graph/libraries/graphic-types/src/boundary.rs index bb9b5d67a2..ca53dc2157 100644 --- a/node-graph/libraries/graphic-types/src/boundary.rs +++ b/node-graph/libraries/graphic-types/src/boundary.rs @@ -16,6 +16,8 @@ use glam::{DAffine2, DVec2}; use vector_types::GradientStops; /// The outcome of materializing a leveled wire into a group. +// The group is the render path's success payload; boxing it would add a heap allocation per materialized level. +#[allow(clippy::large_enum_variant)] pub enum LevelGroup<'e> { Group(Group<'e>, Finality), Pending, diff --git a/node-graph/node-macro/src/codegen/ir.rs b/node-graph/node-macro/src/codegen/ir.rs index f22f1140aa..e6478fa872 100644 --- a/node-graph/node-macro/src/codegen/ir.rs +++ b/node-graph/node-macro/src/codegen/ir.rs @@ -547,6 +547,8 @@ pub(crate) struct ItemShape { pub(crate) attrs: Vec, } +// Macro IR built once per node at expansion time, so the variant spread costs nothing at runtime. +#[allow(clippy::large_enum_variant)] pub(crate) enum Element { Concrete(Type), /// Indexes [`Node::generics`].