diff --git a/examples/hello_world.rs b/examples/hello_world.rs index 6d4dd23..bb851a1 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -16,9 +16,7 @@ fn main() { let mut support = Support::init(); loop { - let active = support.render(CLEAR_COLOR, |frame| { - hello_world(frame) - }); + let active = support.render(CLEAR_COLOR, hello_world); if !active { break } } }