Skip to content

Commit

Permalink
Minor: Ran cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfrances107 committed Jul 1, 2024
1 parent 0fe5b8b commit 3a68624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/component/file_lister/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ pub fn Lister() -> impl IntoView {
use wasm_bindgen::JsCast;
use web_sys::HtmlInputElement;

use leptos::create_resource;
use leptos::create_node_ref;
use leptos::create_resource;
use leptos::create_server_action;
use leptos::create_signal;
use leptos::ev;
Expand All @@ -36,10 +36,8 @@ pub fn Lister() -> impl IntoView {

let list_url_action = create_server_action::<AddListUrl>();

let list_urls_resource = create_resource(
move || list_url_action.version().get(),
get_list_url,
);
let list_urls_resource =
create_resource(move || list_url_action.version().get(), get_list_url);

let list_url = Signal::derive(move || match list_urls_resource.get() {
Some(Ok(result)) => result.listed_urls,
Expand Down
8 changes: 3 additions & 5 deletions src/pages/search/view.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use leptos::component;
use leptos::create_resource;
use leptos::create_node_ref;
use leptos::create_resource;
use leptos::create_server_action;
use leptos::ev::SubmitEvent;
use leptos::html;
Expand Down Expand Up @@ -30,10 +30,8 @@ pub fn Search() -> impl IntoView {

let search_query_action = create_server_action::<AddQuery>();

let images = create_resource(
move || search_query_action.version().get(),
get_query,
);
let images =
create_resource(move || search_query_action.version().get(), get_query);

let entries = Signal::derive(move || match images.get() {
Some(Ok(SearchResult { entries, .. })) => entries,
Expand Down

0 comments on commit 3a68624

Please sign in to comment.