From 6cc2a64645a7b54588c58c9b261c8ef6d30056b7 Mon Sep 17 00:00:00 2001 From: Maxim Muravev Date: Sun, 19 Jul 2026 18:52:39 +0300 Subject: [PATCH] fmt: Run cargo fmt --- CREDITS.md | 2 ++ src/hal/fido/mod.rs | 9 +++++++-- src/ui/screens/config/view_model.rs | 9 ++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CREDITS.md b/CREDITS.md index d360334..228c156 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -8,10 +8,12 @@ - [jetcookies](https://github.com/jetcookies): Contributed `package.nix` file for nix packaging of the application and maintains the nix flake of the application. - [Sylvain Pelissier](https://github.com/sylvainpelissier): Worked on the Enterprise attestation features. - [kralonur](https://github.com/kralonur): Improved Pico-FIDO 7.6 compatibility and preserved legacy FIDO hardware configuration support. +- [TheMaxMur](https://github.com/TheMaxMur): Add RS-Key support. **Third-party Libraries** - [Pico FIDO](https://github.com/polhenarejos/pico-fido) - The firmware this tool configures +- [RS-Key](https://github.com/TheMaxMur/RS-Key) - The second firmware this tool configures - [GPUI](https://www.gpui.rs/) - UI framework written in rust - [gpui-component](https://longbridge.github.io/gpui-component/) - UI components for GPUI framework - [pcsc-rust](https://github.com/bluetech/pcsc-rust) - Smart card interface diff --git a/src/hal/fido/mod.rs b/src/hal/fido/mod.rs index 10aee06..71d1a71 100644 --- a/src/hal/fido/mod.rs +++ b/src/hal/fido/mod.rs @@ -1031,7 +1031,9 @@ fn build_rskey_phy_tlv(config: &AppConfigInput) -> Result, PFError> { // Firmware accepts a product record of 1..=33 bytes (name + trailing NUL), // so the name must be <= 32 bytes — reject rather than emit a wrapped length. if bytes.len() + 1 > 33 { - return Err(PFError::Device("Product name too long (max 32 bytes).".into())); + return Err(PFError::Device( + "Product name too long (max 32 bytes).".into(), + )); } tlv.push(RSKEY_PHY_TAG_USB_PRODUCT); tlv.push((bytes.len() + 1) as u8); @@ -1467,7 +1469,10 @@ pub(crate) fn read_rskey_led_config(transport: &HidTransport) -> Result