mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-22 02:58:28 +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
|
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||||
#![warn(clippy::all, rust_2018_idioms)]
|
#![warn(clippy::all, rust_2018_idioms)]
|
||||||
|
|
||||||
|
use egui_node_graph_example::NodeGraphExample;
|
||||||
|
|
||||||
// When compiling natively:
|
// When compiling natively:
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
fn main() {
|
fn main() {
|
||||||
@ -14,10 +16,10 @@ fn main() {
|
|||||||
cc.egui_ctx.set_visuals(Visuals::dark());
|
cc.egui_ctx.set_visuals(Visuals::dark());
|
||||||
#[cfg(feature = "persistence")]
|
#[cfg(feature = "persistence")]
|
||||||
{
|
{
|
||||||
Box::new(egui_node_graph_example::NodeGraphExample::new(cc))
|
Box::new(NodeGraphExample::new(cc))
|
||||||
}
|
}
|
||||||
#[cfg(not(feature = "persistence"))]
|
#[cfg(not(feature = "persistence"))]
|
||||||
Box::new(egui_node_graph_example::NodeGraphExample::default())
|
Box::<NodeGraphExample>::default()
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.expect("Failed to run native example");
|
.expect("Failed to run native example");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user