Silence the dead-code warnings for groundwork the host wiring will use

This commit is contained in:
Dennis Kobert
2026-08-01 00:59:26 +02:00
parent fa29ddf357
commit 8b53983e9d
2 changed files with 3 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ pub struct NodeRuntime {
editor_preferences: EditorPreferences,
old_graph: Option<NodeNetwork>,
update_thumbnails: bool,
#[expect(dead_code, reason = "read once the host wires a notifier onto the runtime")]
graph_runtime: Arc<DynGraphRuntime>,
editor_api: Arc<PlatformEditorApi>,

View File

@@ -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<M: Measurement, F>(group: &mut BenchmarkGroup<M>, f: F)
where
F: Fn(&str, &mut BenchmarkGroup<M>),