From 79c45ad120c0ec8f0fb782c4d1ed0d085ba8021a Mon Sep 17 00:00:00 2001 From: marc2332 Date: Sun, 28 Apr 2024 17:21:38 +0200 Subject: [PATCH] chore: cargo fmt --- packages/codegen/src/create_icon_file.rs | 4 ++-- packages/lib/src/icons/io_icons.rs | 10 +++++----- packages/lib/src/icons/md_communication_icons.rs | 4 +--- packages/lib/src/icons/md_content_icons.rs | 12 +++--------- packages/lib/src/icons/md_hardware_icons.rs | 8 ++------ packages/lib/src/icons/md_image_icons.rs | 4 +--- packages/lib/src/icons/md_notification_icons.rs | 4 +--- packages/lib/src/icons/md_places_icons.rs | 8 ++------ packages/lib/src/icons/md_social_icons.rs | 4 +--- packages/lib/src/icons/md_toggle_icons.rs | 4 +--- 10 files changed, 19 insertions(+), 43 deletions(-) diff --git a/packages/codegen/src/create_icon_file.rs b/packages/codegen/src/create_icon_file.rs index a17ce2c..2344be8 100644 --- a/packages/codegen/src/create_icon_file.rs +++ b/packages/codegen/src/create_icon_file.rs @@ -91,9 +91,9 @@ pub fn create_icon_file(svg_path: &str, output_path: &str, icon_prefix: &str) { "{}\n\n{}", "use super::super::IconShape;\nuse dioxus::prelude::*;", icon_file ) - .as_bytes(), + .as_bytes(), ) - .unwrap(); + .unwrap(); file.flush().unwrap(); } diff --git a/packages/lib/src/icons/io_icons.rs b/packages/lib/src/icons/io_icons.rs index e622839..4faccac 100644 --- a/packages/lib/src/icons/io_icons.rs +++ b/packages/lib/src/icons/io_icons.rs @@ -13631,26 +13631,26 @@ impl IconShape for IoColorWand { } path { d: "M124.1,140.1c-4.2,0-8.3-1.7-11.3-4.7l-33.9-33.9c-6.2-6.2-6.2-16.4,0-22.6s16.4-6.2,22.6,0l33.9,33.9 - c6.3,6.2,6.3,16.4,0,22.6C132.4,138.4,128.4,140.1,124.1,140.1z", + c6.3,6.2,6.3,16.4,0,22.6C132.4,138.4,128.4,140.1,124.1,140.1z", } path { d: "M192,112c-8.8,0-16-7.2-16-16V48c0-8.8,7.2-16,16-16s16,7.2,16,16v48C208,104.8,200.8,112,192,112z", } path { d: "M259.9,140.1c-8.8,0-16-7.2-16-16c0-4.2,1.7-8.3,4.7-11.3l33.9-33.9c6.2-6.2,16.4-6.2,22.6,0c6.2,6.2,6.2,16.4,0,22.6 - l-33.9,33.9C268.2,138.4,264.1,140.1,259.9,140.1z", + l-33.9,33.9C268.2,138.4,264.1,140.1,259.9,140.1z", } path { d: "M90.2,309.8c-8.8,0-16-7.2-16-16c0-4.2,1.7-8.3,4.7-11.3l33.9-33.9c6.2-6.2,16.4-6.2,22.6,0s6.2,16.4,0,22.6l-33.9,33.9 - C98.5,308.1,94.4,309.8,90.2,309.8z", + C98.5,308.1,94.4,309.8,90.2,309.8z", } path { d: "M234.2,167c-18.4-18.7-48.5-19-67.2-0.7s-19,48.5-0.7,67.2c0.2,0.2,0.5,0.5,0.7,0.7l39.5,39.5c3.1,3.1,8.2,3.1,11.3,0 - l55.9-55.9c3.1-3.1,3.1-8.2,0-11.3L234.2,167z", + l55.9-55.9c3.1-3.1,3.1-8.2,0-11.3L234.2,167z", } path { d: "M457,389.8L307.6,240.4c-3.1-3.1-8.2-3.1-11.3,0l-55.9,55.9c-3.1,3.1-3.1,8.2,0,11.3L389.8,457c18.4,18.7,48.5,19,67.2,0.7 - c18.7-18.4,19-48.5,0.7-67.2C457.5,390.3,457.3,390,457,389.8L457,389.8z", + c18.7-18.4,19-48.5,0.7-67.2C457.5,390.3,457.3,390,457,389.8L457,389.8z", } } } diff --git a/packages/lib/src/icons/md_communication_icons.rs b/packages/lib/src/icons/md_communication_icons.rs index da8d76e..4a27fd5 100644 --- a/packages/lib/src/icons/md_communication_icons.rs +++ b/packages/lib/src/icons/md_communication_icons.rs @@ -2329,9 +2329,7 @@ impl IconShape for MdUnsubscribe { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } diff --git a/packages/lib/src/icons/md_content_icons.rs b/packages/lib/src/icons/md_content_icons.rs index 539d977..7a943aa 100644 --- a/packages/lib/src/icons/md_content_icons.rs +++ b/packages/lib/src/icons/md_content_icons.rs @@ -368,9 +368,7 @@ impl IconShape for MdBolt { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } @@ -1742,9 +1740,7 @@ impl IconShape for MdTag { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } @@ -1848,9 +1844,7 @@ impl IconShape for MdWaves { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } diff --git a/packages/lib/src/icons/md_hardware_icons.rs b/packages/lib/src/icons/md_hardware_icons.rs index 2765437..468e691 100644 --- a/packages/lib/src/icons/md_hardware_icons.rs +++ b/packages/lib/src/icons/md_hardware_icons.rs @@ -925,9 +925,7 @@ impl IconShape for MdMonitor { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } @@ -1390,9 +1388,7 @@ impl IconShape for MdTabletMac { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } diff --git a/packages/lib/src/icons/md_image_icons.rs b/packages/lib/src/icons/md_image_icons.rs index eee4e89..28340e5 100644 --- a/packages/lib/src/icons/md_image_icons.rs +++ b/packages/lib/src/icons/md_image_icons.rs @@ -3406,9 +3406,7 @@ impl IconShape for MdHdrOff { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } diff --git a/packages/lib/src/icons/md_notification_icons.rs b/packages/lib/src/icons/md_notification_icons.rs index 9d990b1..b110628 100644 --- a/packages/lib/src/icons/md_notification_icons.rs +++ b/packages/lib/src/icons/md_notification_icons.rs @@ -74,9 +74,7 @@ impl IconShape for MdAddCall { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } diff --git a/packages/lib/src/icons/md_places_icons.rs b/packages/lib/src/icons/md_places_icons.rs index dcd2d02..74c1b8f 100644 --- a/packages/lib/src/icons/md_places_icons.rs +++ b/packages/lib/src/icons/md_places_icons.rs @@ -1044,9 +1044,7 @@ impl IconShape for MdMeetingRoom { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } @@ -1258,9 +1256,7 @@ impl IconShape for MdNoMeetingRoom { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } diff --git a/packages/lib/src/icons/md_social_icons.rs b/packages/lib/src/icons/md_social_icons.rs index 2ac1b55..db72566 100644 --- a/packages/lib/src/icons/md_social_icons.rs +++ b/packages/lib/src/icons/md_social_icons.rs @@ -1165,9 +1165,7 @@ impl IconShape for MdNotifications { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } } diff --git a/packages/lib/src/icons/md_toggle_icons.rs b/packages/lib/src/icons/md_toggle_icons.rs index ae4194e..1279576 100644 --- a/packages/lib/src/icons/md_toggle_icons.rs +++ b/packages/lib/src/icons/md_toggle_icons.rs @@ -239,9 +239,7 @@ impl IconShape for MdStarOutline { "miter" } fn child_elements(&self) -> Element { - rsx! { - - } + rsx! {} } }