Skip to content

Commit

Permalink
Make input fn fnonce
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed Apr 5, 2024
1 parent bf762d5 commit c5fb19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Glass {
/// on `Device` context
pub fn new_and_run(
config: GlassConfig,
mut app_create_fn: impl FnMut(&EventLoop<()>, &mut GlassContext) -> Box<dyn GlassApp>,
app_create_fn: impl FnOnce(&EventLoop<()>, &mut GlassContext) -> Box<dyn GlassApp>,
) -> Result<(), GlassError> {
let event_loop = match EventLoop::new() {
Ok(e) => e,
Expand Down

0 comments on commit c5fb19b

Please sign in to comment.