From 8b53983e9d766c98151aa674076afd80b174b3ee Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sat, 1 Aug 2026 00:59:26 +0200 Subject: [PATCH] Silence the dead-code warnings for groundwork the host wiring will use --- editor/src/node_graph_executor/runtime.rs | 1 + node-graph/interpreted-executor/benches/benchmark_util.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/editor/src/node_graph_executor/runtime.rs b/editor/src/node_graph_executor/runtime.rs index f067cc35d2..70eb6a95f5 100644 --- a/editor/src/node_graph_executor/runtime.rs +++ b/editor/src/node_graph_executor/runtime.rs @@ -41,6 +41,7 @@ pub struct NodeRuntime { editor_preferences: EditorPreferences, old_graph: Option, update_thumbnails: bool, + #[expect(dead_code, reason = "read once the host wires a notifier onto the runtime")] graph_runtime: Arc, editor_api: Arc, diff --git a/node-graph/interpreted-executor/benches/benchmark_util.rs b/node-graph/interpreted-executor/benches/benchmark_util.rs index 89a9e5d57f..6b888bbafc 100644 --- a/node-graph/interpreted-executor/benches/benchmark_util.rs +++ b/node-graph/interpreted-executor/benches/benchmark_util.rs @@ -17,6 +17,8 @@ pub fn setup_network(name: &str) -> (DynamicExecutor, ProtoNetwork) { (executor, proto_network) } +// Some benches in this module's include set drive the demos themselves. +#[allow(dead_code)] pub fn bench_for_each_demo(group: &mut BenchmarkGroup, f: F) where F: Fn(&str, &mut BenchmarkGroup),