diff --git a/src/main.rs b/src/main.rs index c538497..65fa2bd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,23 +22,13 @@ pub(crate) struct GameState { fn main() { let mut app = App::new(); - do_debug_ui(&mut app.game); + app.game.inspect_mut(); } - -pub(crate) fn do_debug_ui(game: &mut GameState) { - show(&||{ - game.inspect_mut(); - }); -} - -fn show(f: &dyn FnMut()) {} - // this is actually used pub struct TileDb { unknown_bg: tiles::TileDef, } - pub trait Inspect { fn inspect_mut(&mut self) { loop {} @@ -46,7 +36,6 @@ pub trait Inspect { } impl Inspect for () {} - impl Inspect for TileDb { fn inspect_mut(&mut self) { let _a = &mut self.unknown_bg;