[yew-devel] [PATCH yew-widget-toolkit-examples 1/3] demo: run rustfmt

Shannon Sterz s.sterz at proxmox.com
Mon Jan 13 14:29:34 CET 2025


Signed-off-by: Shannon Sterz <s.sterz at 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





More information about the yew-devel mailing list