Skip to content

Commit

Permalink
Update DeviceInfo debug impl to match sysfs_path
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Jan 9, 2024
1 parent 54d3eee commit 131e046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/enumeration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit 131e046

Please sign in to comment.