summary refs log tree commit diff stats
path: root/src/components/input_placeholder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/input_placeholder.rs')
-rw-r--r--src/components/input_placeholder.rs15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/components/input_placeholder.rs b/src/components/input_placeholder.rs
index 99b3196..0589363 100644
--- a/src/components/input_placeholder.rs
+++ b/src/components/input_placeholder.rs
@@ -96,12 +96,7 @@ pub fn InputPlaceholder(
                 {label}
             </label>
 
-            <Show
-                when=move || {
-                    !autocomplete_signal.get().is_empty()
-                }
-                fallback=move || ()
-            >
+            <Show when=move || { !autocomplete_signal.get().is_empty() } fallback=move || ()>
                 <div class="\
                 absolute \
                 top-0 \
@@ -139,7 +134,7 @@ pub fn InputPlaceholder(
                                             provide_auto_completion(
                                                 auto_complete,
                                                 autocomplete_set,
-                                                reactive
+                                                reactive,
                                             )
                                         })
                                 }}
@@ -178,10 +173,10 @@ fn provide_auto_completion(
                                                 autocomplete_set.set(item2.clone());
                                                 reactive
                                                     .expect(
-                                                    "Should be set, \
-                                                    when autocomplete is used")
+                                                        "Should be set, \
+                                                    when autocomplete is used",
+                                                    )
                                                     .set(Some(item2.clone()));
-
                                                 info!("Set autocomplete to {item2}.");
                                             }
                                         >