Fix redundant closures (Clippy)
Some checks failed
Push Workflows / rustfmt (push) Successful in 4s
Push Workflows / docs (push) Successful in 29s
Push Workflows / clippy (push) Successful in 25s
Push Workflows / leptos-test (push) Successful in 54s
Push Workflows / test (push) Successful in 1m2s
Push Workflows / build (push) Successful in 1m52s
Push Workflows / docker-build (push) Failing after 8m18s
Push Workflows / nix-build (push) Successful in 13m53s

This commit is contained in:
2025-04-29 22:41:47 +00:00
parent 297c22d832
commit 16bc79aef4
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ pub fn ArtistPage() -> impl IntoView {
#[component]
fn ArtistIdProfile(#[prop(into)] id: Signal<i32>) -> impl IntoView {
let artist_info = Resource::new(move || id.get(), move |id| get_artist_by_id(id));
let artist_info = Resource::new(move || id.get(), get_artist_by_id);
let show_details = RwSignal::new(false);

View File

@ -90,7 +90,7 @@ fn OwnProfile() -> impl IntoView {
/// Show a user's profile by ID
#[component]
fn UserIdProfile(#[prop(into)] id: Signal<i32>) -> impl IntoView {
let user_info = Resource::new(move || id.get(), move |id| get_user_by_id(id));
let user_info = Resource::new(move || id.get(), get_user_by_id);
// Show the details if the user is found
let show_details = RwSignal::new(false);

View File

@ -48,7 +48,7 @@ pub fn SongPage() -> impl IntoView {
#[component]
fn SongDetails(#[prop(into)] id: Signal<i32>) -> impl IntoView {
let song_info = Resource::new(move || id.get(), move |id| get_song_by_id(id));
let song_info = Resource::new(move || id.get(), get_song_by_id);
view! {
<Transition