From 671d1e6eed4f4744a71a62758f8c43a9ab7b5673 Mon Sep 17 00:00:00 2001 From: Kamil Koczurek Date: Wed, 10 May 2023 12:04:42 +0200 Subject: [PATCH] example: appease clippy in main.rs --- egui_node_graph_example/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/egui_node_graph_example/src/main.rs b/egui_node_graph_example/src/main.rs index 0fe95af..8d5d544 100644 --- a/egui_node_graph_example/src/main.rs +++ b/egui_node_graph_example/src/main.rs @@ -2,6 +2,8 @@ #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds #![warn(clippy::all, rust_2018_idioms)] +use egui_node_graph_example::NodeGraphExample; + // When compiling natively: #[cfg(not(target_arch = "wasm32"))] fn main() { @@ -14,10 +16,10 @@ fn main() { cc.egui_ctx.set_visuals(Visuals::dark()); #[cfg(feature = "persistence")] { - Box::new(egui_node_graph_example::NodeGraphExample::new(cc)) + Box::new(NodeGraphExample::new(cc)) } #[cfg(not(feature = "persistence"))] - Box::new(egui_node_graph_example::NodeGraphExample::default()) + Box::::default() }), ) .expect("Failed to run native example");