diff options
| author | brian cully <bjc@spork.org> | 2025-12-27 14:39:53 -0500 |
|---|---|---|
| committer | brian cully <bjc@spork.org> | 2025-12-27 14:39:53 -0500 |
| commit | 4a8f968b6cf8e7e3fc3cee72cc8b552a8ceec047 (patch) | |
| tree | d5d873bb51ea1953946484858a95462db69b35c7 /src/state.rs | |
| parent | c182d8179ddd382543b7e56f46e78bf6a6724b2a (diff) | |
| download | polyring-4a8f968b6cf8e7e3fc3cee72cc8b552a8ceec047.tar.gz polyring-4a8f968b6cf8e7e3fc3cee72cc8b552a8ceec047.zip | |
fmt
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/state.rs b/src/state.rs index 8941a3b..4adb952 100644 --- a/src/state.rs +++ b/src/state.rs @@ -48,7 +48,11 @@ impl State { .expect("2d context on canvas") .dyn_into()?; ctx.scale(canvas.width().into(), canvas.height().into())?; - let fps = document().query_selector("#fps")?.expect("fps counter exists").dyn_into::<HtmlElement>().expect("is html element"); + let fps = document() + .query_selector("#fps")? + .expect("fps counter exists") + .dyn_into::<HtmlElement>() + .expect("is html element"); let points = (0..NUM_POINTS) .map(|_| Point::new(fastrand::f64(), fastrand::f64())) |
