From f208f3d92e3d3b91c92e470bb4b694f33160c480 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Mon, 22 Jun 2026 14:52:28 +0200 Subject: [PATCH] style(host): blank line before the uniq comment so rustfmt is clean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dualshock4.rs left `cargo fmt --all --check` red on main (it landed with the Windows-host DualSense work): a standalone comment placed directly after a line ending in a trailing comment gets absorbed and re-aligned to the trailing-comment column. A blank line before the comment block keeps rustfmt happy — and the comment readable. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/punktfunk-host/src/inject/dualshock4.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/punktfunk-host/src/inject/dualshock4.rs b/crates/punktfunk-host/src/inject/dualshock4.rs index cda75ef..9a82960 100644 --- a/crates/punktfunk-host/src/inject/dualshock4.rs +++ b/crates/punktfunk-host/src/inject/dualshock4.rs @@ -258,6 +258,7 @@ impl DualShock4Pad { // union (uhid_create2_req) starts at byte 4. put_cstr(&mut ev, 4, 128, &format!("Punktfunk DualShock 4 {index}")); // name[128] put_cstr(&mut ev, 132, 64, &format!("punktfunk/dualshock4/{index}")); // phys[64] + // A unique uniq[64] keeps the sysfs nodes tidy when several pads coexist (the kernel's // duplicate-device check itself keys off the per-pad MAC in the pairing feature report). put_cstr(&mut ev, 196, 64, &format!("punktfunk-ds4-{index}")); // uniq[64]