aboutsummaryrefslogtreecommitdiffstats
path: root/src/render_loop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/render_loop.rs')
-rw-r--r--src/render_loop.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render_loop.rs b/src/render_loop.rs
index bc6d8a9..9b8d8f5 100644
--- a/src/render_loop.rs
+++ b/src/render_loop.rs
@@ -9,7 +9,8 @@ pub struct RenderLoop {
impl RenderLoop {
fn request_animation_frame(f: &Closure<dyn FnMut(f64)>) {
- web_sys::window().expect("no window")
+ web_sys::window()
+ .expect("no window")
.request_animation_frame(f.as_ref().unchecked_ref())
.expect("should register `requestAnimationFrame` OK");
}