1
0

oneline-expand.wrong.rsx 219 B

12345678
  1. fn main() {
  2. rsx! {
  3. button {
  4. id: "start_stop",
  5. onclick: move |_| timer.with_mut(|t| t.started_at = if t.started_at.is_none() { Some(Instant::now()) } else { None } )
  6. }
  7. }
  8. }