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(), ); });