From a4957a6eeb516247e4220db241883694b70037da Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Sat, 10 Jan 2026 13:58:09 +0100 Subject: [PATCH] Modify changelog and cargo fmt --- CHANGELOG.md | 3 +++ rog-slash/src/data.rs | 7 ++++++- rog-slash/src/usb.rs | 7 ++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d31b971..f2bdacd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ### Changed - Added support for TUF keyboard powerstate control +- Improved AniMe Matrix support thanks to @Seom1177 ! +- Fixed a bug with one-shot battery change, thanks @bitr8 ! + ## [6.2.0] diff --git a/rog-slash/src/data.rs b/rog-slash/src/data.rs index f4240e5d..a4382943 100644 --- a/rog-slash/src/data.rs +++ b/rog-slash/src/data.rs @@ -54,7 +54,12 @@ impl SlashType { let board_name = DMIID::new().unwrap_or_default().board_name.to_uppercase(); if board_name.contains("G614F") { SlashType::G614_2025 - } else if ["GA403W", "GA403UH", "GA403UM", "GA403UP"].iter().any(|s| board_name.contains(s)) { + } else if [ + "GA403W", "GA403UH", "GA403UM", "GA403UP", + ] + .iter() + .any(|s| board_name.contains(s)) + { SlashType::GA403_2025 } else if board_name.contains("GA403") { SlashType::GA403_2024 diff --git a/rog-slash/src/usb.rs b/rog-slash/src/usb.rs index f78d79ce..4b557943 100644 --- a/rog-slash/src/usb.rs +++ b/rog-slash/src/usb.rs @@ -40,7 +40,12 @@ pub fn get_slash_type() -> SlashType { let board_name = dmi.board_name.to_uppercase(); if board_name.contains("G614F") { SlashType::G614_2025 - } else if ["GA403W", "GA403UH", "GA403UM", "GA403UP"].iter().any(|s| board_name.contains(s)) { + } else if [ + "GA403W", "GA403UH", "GA403UM", "GA403UP", + ] + .iter() + .any(|s| board_name.contains(s)) + { SlashType::GA403_2025 } else if board_name.contains("GA403") { SlashType::GA403_2024