summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-04-03 21:31:55 -0400
committerLLLL Colonq <llll@colonq>2025-04-03 21:31:55 -0400
commit4ba01304ede403816de069357ca5aeff535ccac7 (patch)
tree9dd69c0ac84ab788e6cb95543cc5962907b9861d /src/lib.rs
parent1e0f17abbc9ae45aee8d9dde875fad3aabcac18b (diff)
Binary saves
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a77ff19..71c1cf6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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 {