From aa9ad6d9d0438199d4500b07717af4661a6000bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Juul=20Brunsh=C3=B8j?= Date: Mon, 17 Feb 2025 13:03:31 +0100 Subject: [PATCH] fix lints --- .helix/languages.toml | 3 +++ crates/ascend/src/app.rs | 2 -- crates/ascend/src/components/button.rs | 2 +- crates/ascend/src/components/problem.rs | 2 +- crates/ascend/src/models.rs | 4 ++-- crates/ascend/src/pages/wall.rs | 13 +++++++++---- crates/ascend/src/server/operations.rs | 2 +- flake.lock | 6 +++--- flake.nix | 7 +------ 9 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.helix/languages.toml b/.helix/languages.toml index b868472..6cbd9aa 100644 --- a/.helix/languages.toml +++ b/.helix/languages.toml @@ -6,5 +6,8 @@ language-servers = ["rust-analyzer", "tailwindcss-ls"] # procMacro = { ignored = { leptos_macro = ["server"] } } cargo = { features = ["ssr", "hydrate"] } +[language-server.rust-analyzer.config.check] +command = "clippy" + [language-server.tailwindcss-ls] config = { userLanguages = { rust = "html", "*.rs" = "html" } } diff --git a/crates/ascend/src/app.rs b/crates/ascend/src/app.rs index 6d170e4..8efd20c 100644 --- a/crates/ascend/src/app.rs +++ b/crates/ascend/src/app.rs @@ -84,6 +84,4 @@ pub fn Home() -> impl IntoView { tracing::debug!("navigated"); } }); - - leptos::view! {} } diff --git a/crates/ascend/src/components/button.rs b/crates/ascend/src/components/button.rs index 134f138..ee2dd67 100644 --- a/crates/ascend/src/components/button.rs +++ b/crates/ascend/src/components/button.rs @@ -2,7 +2,7 @@ use leptos::prelude::*; use web_sys::MouseEvent; #[component] -pub fn Button(#[prop(into)] text: String, onclick: impl Fn(MouseEvent) -> () + 'static) -> impl IntoView { +pub fn Button(#[prop(into)] text: String, onclick: impl Fn(MouseEvent) + 'static) -> impl IntoView { view! {