cargo fmt
[temp2RGB.git] / src / asus_aura_usb.rs
index 01590c0..e639d38 100644 (file)
@@ -28,19 +28,18 @@ pub struct Device {
 
 impl Device {
     pub fn new(api: &hidapi::HidApi, motherboard: Motherboard) -> Self {
-        let device =
-            Device {
-                device: api
-                    .open(
-                        VID,
-                        match motherboard {
-                            Motherboard::Asus650e => PID_650_E,
-                            Motherboard::AsusCrosshairVIIIHero => PID_CROSSHAIR,
-                        },
-                    )
-                    .unwrap(),
-                motherboard,
-            };
+        let device = Device {
+            device: api
+                .open(
+                    VID,
+                    match motherboard {
+                        Motherboard::Asus650e => PID_650_E,
+                        Motherboard::AsusCrosshairVIIIHero => PID_CROSSHAIR,
+                    },
+                )
+                .unwrap(),
+            motherboard,
+        };
 
         device.set_fixed_mode();
         device