mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-10 05:18:27 +00:00
example: appease clippy in main.rs
This commit is contained in:
parent
006a5f3608
commit
671d1e6eed
@ -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::<NodeGraphExample>::default()
|
||||
}),
|
||||
)
|
||||
.expect("Failed to run native example");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user