all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [yew-devel] [PATCH yew-widget-toolkit-examples 1/3] demo: run rustfmt
@ 2025-01-13 13:29 Shannon Sterz
  2025-01-13 13:29 ` [yew-devel] [PATCH yew-widget-toolkit-examples 2/3] demo: apply auto-appliable clippy fixes Shannon Sterz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shannon Sterz @ 2025-01-13 13:29 UTC (permalink / raw)
  To: yew-devel

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 demo/src/datatable.rs | 11 +++++++----
 demo/src/i18n.rs      | 10 +++++-----
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/demo/src/datatable.rs b/demo/src/datatable.rs
index f009124..ce6b882 100644
--- a/demo/src/datatable.rs
+++ b/demo/src/datatable.rs
@@ -130,10 +130,13 @@ pub fn DataTableDemo() -> Html {
                         )
                         .with_right_field(
                             "Striped",
-                            Checkbox::new().name("striped").checked(*striped).on_change({
-                                let striped = striped.clone();
-                                move |v| striped.set(v)
-                            }),
+                            Checkbox::new()
+                                .name("striped")
+                                .checked(*striped)
+                                .on_change({
+                                    let striped = striped.clone();
+                                    move |v| striped.set(v)
+                                }),
                         )
                         .with_right_field(
                             "Hover",
diff --git a/demo/src/i18n.rs b/demo/src/i18n.rs
index 796c8fe..058c1f3 100644
--- a/demo/src/i18n.rs
+++ b/demo/src/i18n.rs
@@ -17,15 +17,15 @@ pub fn I18NDemo() -> Html {
     Panel::new()
         .class("pwt-flex-fit")
         .border(false)
-        .title(pgettext!("This is a panel title", "Internationalization with gettext"))
+        .title(pgettext!(
+            "This is a panel title",
+            "Internationalization with gettext"
+        ))
         .with_tool(LanguageSelector::new())
         .with_child(
             Container::new()
                 .margin(2)
-                .with_child(
-                    Button::new(tr!("Add Message"))
-                        .onclick(button_callback),
-                ),
+                .with_child(Button::new(tr!("Add Message")).onclick(button_callback)),
         )
         .with_child(Container::new().margin(2).with_child(ngettext!(
             "You have one new message",
-- 
2.39.5



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-14 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-13 13:29 [yew-devel] [PATCH yew-widget-toolkit-examples 1/3] demo: run rustfmt Shannon Sterz
2025-01-13 13:29 ` [yew-devel] [PATCH yew-widget-toolkit-examples 2/3] demo: apply auto-appliable clippy fixes Shannon Sterz
2025-01-13 13:29 ` [yew-devel] [PATCH yew-widget-toolkit-examples 3/3] mobile2: remove needless borrows Shannon Sterz
2025-01-14 10:19 ` [yew-devel] applied: [PATCH yew-widget-toolkit-examples 1/3] demo: run rustfmt Dietmar Maurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal