Fix clippy errors, update deps
Some checks failed
Build Crate / build (push) Failing after 52s

This commit is contained in:
2024-08-18 19:56:00 -04:00
parent ffe6a771d2
commit d29da66536
10 changed files with 27 additions and 16 deletions

View File

@@ -40,7 +40,7 @@ fn add_game_form_page<'a, G: Html>(cx: BoundedScope<'_, 'a>, state: &'a PageStat
};
view! { cx,
Layout(title = "Add Game Results") {
Layout(_title = "Add Game Results") {
div (class = "flex flex-wrap") {
select {
option (value="red")

View File

@@ -5,8 +5,7 @@ use serde::{Deserialize, Serialize};
cfg_if::cfg_if! {
if #[cfg(engine)] {
use std::thread;
use std::ops::Deref;
}
}

View File

@@ -4,7 +4,7 @@ use sycamore::prelude::*;
fn index_page<G: Html>(cx: Scope) -> View<G> {
view! { cx,
Layout(title = "Index") {
Layout(_title = "Index") {
// Anything we put in here will be rendered inside the `<main>` block of the layout
p { "Hello World!" }
br {}

View File

@@ -9,7 +9,7 @@ struct PageState {}
fn one_v_one_board_page<'a, G: Html>(cx: BoundedScope<'_, 'a>, _state: &'a PageStateRx) -> View<G> {
view! { cx,
Layout(title = "1v1 Leaderboard") {
Layout(_title = "1v1 Leaderboard") {
p { "leaderboard" }
}
}

View File

@@ -9,10 +9,10 @@ use sycamore::prelude::*;
struct PageState {}
fn overall_board_page<'a, G: Html>(cx: BoundedScope<'_, 'a>, _state: &'a PageStateRx) -> View<G> {
let global_state = Reactor::<G>::from_cx(cx).get_global_state::<AppStateRx>(cx);
let _global_state = Reactor::<G>::from_cx(cx).get_global_state::<AppStateRx>(cx);
view! { cx,
Layout(title = "Overall Leaderboard") {
Layout(_title = "Overall Leaderboard") {
ul {
(View::new_fragment(
vec![],