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
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:
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user