From 49351a31b189e5254a453d49d353bc5736b01933 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sun, 18 Aug 2024 18:56:03 -0400 Subject: [PATCH] details --- client/src/components/cards.rs | 2 +- client/src/components/game.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/cards.rs b/client/src/components/cards.rs index ad9e946..952781e 100644 --- a/client/src/components/cards.rs +++ b/client/src/components/cards.rs @@ -1,6 +1,5 @@ use leptos::*; use lib::WhiteCardMeta; -use std::collections::BTreeSet; #[component] pub fn BlackCard(card_data: ReadSignal<(String, u8)>) -> impl IntoView { @@ -11,6 +10,7 @@ pub fn BlackCard(card_data: ReadSignal<(String, u8)>) -> impl IntoView { } } + #[component] pub fn WhiteCard(card_data: WhiteCardMeta) -> impl IntoView { let set_card_clicked = expect_context::>(); diff --git a/client/src/components/game.rs b/client/src/components/game.rs index 9b7a489..385ceff 100644 --- a/client/src/components/game.rs +++ b/client/src/components/game.rs @@ -67,7 +67,7 @@ pub fn Game() -> impl IntoView { list.remove( list.iter() .position(|card| *card == card_clicked()) - .expect("AASSSSSSSSSSSSSS"), + .unwrap(), ); });