diff --git a/src/app.rs b/src/app.rs index 5dff86fb..98eeb24b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -85,7 +85,9 @@ impl Damus<'_> { //return eframe::get_value(storage, eframe::APP_KEY).unwrap_or_default(); //} - Default::default() + let mut d: Self = Default::default(); + d.add_test_events(); + d } } diff --git a/src/bin/main.rs b/src/bin/main.rs index b59c62fd..2802defe 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -13,7 +13,7 @@ fn main() { eframe::run_native( "Damus Desktop", native_options, - Box::new(|cc| Box::new(Damus::new())), + Box::new(|_cc| Box::new(Damus::new())), ); } @@ -30,7 +30,7 @@ fn main() { eframe::start_web( "the_canvas_id", // hardcode it web_options, - Box::new(|cc| Box::new(Damus::new())), + Box::new(|_cc| Box::new(Damus::new())), ) .expect("failed to start eframe"); }