diff options
| -rw-r--r-- | mullvad-leak-checker/src/lib.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mullvad-leak-checker/src/lib.rs b/mullvad-leak-checker/src/lib.rs index eb80211518..3a0bf43e22 100644 --- a/mullvad-leak-checker/src/lib.rs +++ b/mullvad-leak-checker/src/lib.rs @@ -47,9 +47,14 @@ impl fmt::Debug for Interface { match self { Self::Name(arg0) => f.debug_tuple("Name").field(arg0).finish(), - // SAFETY: u64 is valid for all bit patterns, so reading the union as a u64 is safe. #[cfg(target_os = "windows")] - Self::Luid(arg0) => f.debug_tuple("Luid").field(&unsafe { arg0.Value }).finish(), + Self::Luid(arg0) => f + .debug_tuple("Luid") + .field( + // SAFETY: u64 is valid for all bit patterns, so reading the union as a u64 is safe. + &unsafe { arg0.Value }, + ) + .finish(), #[cfg(target_os = "macos")] Self::Index(arg0) => f.debug_tuple("Luid").field(arg0).finish(), |
