From 3f64dedf76c605685855bea558b0550068281556 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 1 Dec 2022 07:20:58 -0800 Subject: [PATCH] I dunno --- src/app.rs | 4 +++- src/bin/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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"); }