From e837e9fded1777dcbe536f399dc13c5f2033ddc3 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Tue, 9 Apr 2024 14:33:03 -0400 Subject: [PATCH] fix stable examples --- examples/counters/src/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/counters/src/lib.rs b/examples/counters/src/lib.rs index 5351c7f8c..08f1dc1e1 100644 --- a/examples/counters/src/lib.rs +++ b/examples/counters/src/lib.rs @@ -28,7 +28,7 @@ pub fn Counters() -> impl IntoView { let add_counter = move |_| { let id = next_counter_id.get(); let sig = ArcRwSignal::new(0); - set_counters.update(move |counters| counters.push((*id, sig))); + set_counters.update(move |counters| counters.push((id, sig))); set_next_counter_id.update(|id| *id += 1); }; @@ -63,7 +63,7 @@ pub fn Counters() -> impl IntoView { {move || counters.get() .iter() - .map(|(_, (count, _))| count.get()) + .map(|(_, count)| count.get()) .sum::() .to_string() } @@ -95,10 +95,7 @@ fn Counter(id: usize, value: ArcRwSignal) -> impl IntoView {
  • ().unwrap_or_default()) } /> {value.clone()}