diff options
| author | LLLL Colonq <llll@colonq> | 2025-04-03 21:31:55 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-04-03 21:31:55 -0400 |
| commit | 4ba01304ede403816de069357ca5aeff535ccac7 (patch) | |
| tree | 9dd69c0ac84ab788e6cb95543cc5962907b9861d /src/lib.rs | |
| parent | 1e0f17abbc9ae45aee8d9dde875fad3aabcac18b (diff) | |
Binary saves
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -56,11 +56,10 @@ where } #[cfg(not(target_arch = "wasm32"))] -pub async fn run<'a, F, G, Fut>(title: &str, w: u32, h: u32, options: Options, gnew: F) -> Erm<()> +pub fn run<'a, F, G>(title: &str, w: u32, h: u32, options: Options, gnew: F) -> Erm<()> where - Fut: std::future::Future<Output = G>, G: state::Game + 'static, - F: (Fn(&'a context::Context) -> Fut), + F: (Fn(&'a context::Context) -> G), { env_logger::Builder::new() .filter(None, log::LevelFilter::Info) @@ -121,7 +120,7 @@ where glfw, window, gl, w as f32, h as f32, resize, ))); - let game = Box::leak(Box::new(gnew(ctx).await)); + let game = Box::leak(Box::new(gnew(ctx))); let st = Box::leak(Box::new(state::State::new(&ctx))); unsafe { |
