From 131e0461ed41ba3fb7de13a8ae92d2bba28c876a Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Mon, 8 Jan 2024 21:17:03 -0700 Subject: [PATCH] Update DeviceInfo debug impl to match `sysfs_path` --- src/enumeration.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/enumeration.rs b/src/enumeration.rs index 51e74af..574f4a8 100644 --- a/src/enumeration.rs +++ b/src/enumeration.rs @@ -13,7 +13,7 @@ use crate::{Device, Error}; /// ### Platform-specific notes /// /// * Some fields are platform-specific -/// * Linux: `path` +/// * Linux: `sysfs_path` /// * Windows: `instance_id`, `parent_instance_id`, `port_number`, `driver` /// * macOS: `registry_id`, `location_id` #[derive(Clone)] @@ -220,7 +220,7 @@ impl std::fmt::Debug for DeviceInfo { #[cfg(target_os = "linux")] { - s.field("path", &self.path); + s.field("sysfs_path", &self.path); } #[cfg(target_os = "windows")]