From 01b36a44348dc8c065fdeb8787ac5a97ca8197f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=ABl=20Schulz-Ansres?= <joel@systemscape.de>
Date: Mon, 22 Apr 2024 01:06:59 +0200
Subject: [PATCH] rustfmt usb examples

---
 examples/stm32f4/src/bin/usb_ethernet.rs     | 2 +-
 examples/stm32f4/src/bin/usb_hid_keyboard.rs | 4 ++--
 examples/stm32f4/src/bin/usb_hid_mouse.rs    | 2 +-
 examples/stm32f4/src/bin/usb_raw.rs          | 4 ++--
 examples/stm32f4/src/bin/usb_serial.rs       | 4 ++--
 examples/stm32f7/src/bin/usb_serial.rs       | 4 ++--
 examples/stm32h7/src/bin/usb_serial.rs       | 4 ++--
 examples/stm32l4/src/bin/usb_serial.rs       | 2 +-
 8 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/examples/stm32f4/src/bin/usb_ethernet.rs b/examples/stm32f4/src/bin/usb_ethernet.rs
index 284c74564..34e58f282 100644
--- a/examples/stm32f4/src/bin/usb_ethernet.rs
+++ b/examples/stm32f4/src/bin/usb_ethernet.rs
@@ -79,7 +79,7 @@ async fn main(spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information
diff --git a/examples/stm32f4/src/bin/usb_hid_keyboard.rs b/examples/stm32f4/src/bin/usb_hid_keyboard.rs
index 4d9086156..7067d15a3 100644
--- a/examples/stm32f4/src/bin/usb_hid_keyboard.rs
+++ b/examples/stm32f4/src/bin/usb_hid_keyboard.rs
@@ -57,12 +57,12 @@ async fn main(_spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information
     config.vbus_detection = true;
-    
+
     let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
 
     // Create embassy-usb Config
diff --git a/examples/stm32f4/src/bin/usb_hid_mouse.rs b/examples/stm32f4/src/bin/usb_hid_mouse.rs
index 2b8e2f147..0d04d2a9c 100644
--- a/examples/stm32f4/src/bin/usb_hid_mouse.rs
+++ b/examples/stm32f4/src/bin/usb_hid_mouse.rs
@@ -54,7 +54,7 @@ async fn main(_spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information
diff --git a/examples/stm32f4/src/bin/usb_raw.rs b/examples/stm32f4/src/bin/usb_raw.rs
index 00fdff2bf..d058abdd0 100644
--- a/examples/stm32f4/src/bin/usb_raw.rs
+++ b/examples/stm32f4/src/bin/usb_raw.rs
@@ -107,12 +107,12 @@ async fn main(_spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information
     config.vbus_detection = true;
-    
+
     let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
 
     // Create embassy-usb Config
diff --git a/examples/stm32f4/src/bin/usb_serial.rs b/examples/stm32f4/src/bin/usb_serial.rs
index 94c6a4301..25806dd85 100644
--- a/examples/stm32f4/src/bin/usb_serial.rs
+++ b/examples/stm32f4/src/bin/usb_serial.rs
@@ -54,12 +54,12 @@ async fn main(_spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information
     config.vbus_detection = true;
-    
+
     let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
 
     // Create embassy-usb Config
diff --git a/examples/stm32f7/src/bin/usb_serial.rs b/examples/stm32f7/src/bin/usb_serial.rs
index bb42f4cc8..2fee561c7 100644
--- a/examples/stm32f7/src/bin/usb_serial.rs
+++ b/examples/stm32f7/src/bin/usb_serial.rs
@@ -54,12 +54,12 @@ async fn main(_spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information
     config.vbus_detection = true;
-    
+
     let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
 
     // Create embassy-usb Config
diff --git a/examples/stm32h7/src/bin/usb_serial.rs b/examples/stm32h7/src/bin/usb_serial.rs
index 725c9bb02..872ff815c 100644
--- a/examples/stm32h7/src/bin/usb_serial.rs
+++ b/examples/stm32h7/src/bin/usb_serial.rs
@@ -55,12 +55,12 @@ async fn main(_spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information
     config.vbus_detection = true;
-    
+
     let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
 
     // Create embassy-usb Config
diff --git a/examples/stm32l4/src/bin/usb_serial.rs b/examples/stm32l4/src/bin/usb_serial.rs
index 58229d0be..b905fc66f 100644
--- a/examples/stm32l4/src/bin/usb_serial.rs
+++ b/examples/stm32l4/src/bin/usb_serial.rs
@@ -49,7 +49,7 @@ async fn main(_spawner: Spawner) {
 
     // Enable vbus_detection
     // Note: some boards don't have this wired up and might not require it,
-    // as they are powered through usb! 
+    // as they are powered through usb!
     // If you hang on boot, try setting this to "false"!
     // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure
     // for more information