mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 17:38:11 +08:00
Silence the dead-code warnings for groundwork the host wiring will use
This commit is contained in:
@@ -41,6 +41,7 @@ pub struct NodeRuntime {
|
|||||||
editor_preferences: EditorPreferences,
|
editor_preferences: EditorPreferences,
|
||||||
old_graph: Option<NodeNetwork>,
|
old_graph: Option<NodeNetwork>,
|
||||||
update_thumbnails: bool,
|
update_thumbnails: bool,
|
||||||
|
#[expect(dead_code, reason = "read once the host wires a notifier onto the runtime")]
|
||||||
graph_runtime: Arc<DynGraphRuntime>,
|
graph_runtime: Arc<DynGraphRuntime>,
|
||||||
|
|
||||||
editor_api: Arc<PlatformEditorApi>,
|
editor_api: Arc<PlatformEditorApi>,
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ pub fn setup_network(name: &str) -> (DynamicExecutor, ProtoNetwork) {
|
|||||||
(executor, proto_network)
|
(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)
|
pub fn bench_for_each_demo<M: Measurement, F>(group: &mut BenchmarkGroup<M>, f: F)
|
||||||
where
|
where
|
||||||
F: Fn(&str, &mut BenchmarkGroup<M>),
|
F: Fn(&str, &mut BenchmarkGroup<M>),
|
||||||
|
|||||||
Reference in New Issue
Block a user