aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/render_loop.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render_loop.rs b/src/render_loop.rs
index 5a5e21a..5dcf653 100644
--- a/src/render_loop.rs
+++ b/src/render_loop.rs
@@ -10,7 +10,9 @@ pub struct RenderLoop {
impl RenderLoop {
fn request_animation_frame(f: &Closure<dyn FnMut(f64)>) -> Result<(), JsValue> {
- web_sys::window().ok_or("no window")?.request_animation_frame(f.as_ref().unchecked_ref())?;
+ web_sys::window()
+ .ok_or("no window")?
+ .request_animation_frame(f.as_ref().unchecked_ref())?;
Ok(())
}