diff --git a/Cargo.toml b/Cargo.toml index 035667d..59bf3b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ opt-level = 2 lto = false [dependencies] -eframe = { git = "https://github.com/emilk/egui", default-features = false, branch = "eframe-app-creation-refactor" } +eframe = { git = "https://github.com/emilk/egui", default-features = false } shadow-rs = { version = "0.9", default-features = false } const_format = { version = "0.2.22", default-features = false, features = ["fmt"] } cfg-if = "1.0.0" diff --git a/src/lib.rs b/src/lib.rs index 98e490c..7c93be3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ cfg_if::cfg_if! { log_helper("Finished initializing!"); log_helper("Starting App..."); - eframe::start_web("canvas", |cc| Box::new(egui_app::MathApp::new(cc))) + eframe::start_web("canvas", Box::new(|cc| Box::new(egui_app::MathApp::new(cc)))) } } } diff --git a/src/main.rs b/src/main.rs index 93984c1..18541e3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,9 @@ fn main() { drag_and_drop_support: true, ..Default::default() }; - eframe::run_native("(Yet-to-be-named) Graphing Software", options, |cc| { - Box::new(egui_app::MathApp::new(cc)) - }); + eframe::run_native( + "(Yet-to-be-named) Graphing Software", + options, + Box::new(|cc| Box::new(egui_app::MathApp::new(cc))), + ); }