linux: Remove BusInfo::parent_path
You can just use the Path method
This commit is contained in:
parent
e09a4ef458
commit
03468acd5f
2 changed files with 0 additions and 11 deletions
|
|
@ -479,9 +479,6 @@ pub struct BusInfo {
|
|||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
pub(crate) path: SysfsPath,
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
pub(crate) parent_path: SysfsPath,
|
||||
|
||||
/// The phony root hub device
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
pub(crate) root_hub: DeviceInfo,
|
||||
|
|
@ -535,12 +532,6 @@ impl BusInfo {
|
|||
&self.path.0
|
||||
}
|
||||
|
||||
/// *(Linux-only)* Sysfs path for the parent controller
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
pub fn parent_sysfs_path(&self) -> &std::path::Path {
|
||||
&self.parent_path.0
|
||||
}
|
||||
|
||||
/// *(Linux-only)* Bus number.
|
||||
///
|
||||
/// On Linux, the `bus_id` is an integer and this provides the value as `u8`.
|
||||
|
|
@ -664,7 +655,6 @@ impl std::fmt::Debug for BusInfo {
|
|||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
{
|
||||
s.field("sysfs_path", &self.path);
|
||||
s.field("parent_sysfs_path", &self.parent_path);
|
||||
s.field("busnum", &self.busnum);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -175,7 +175,6 @@ pub fn list_buses() -> impl MaybeFuture<Output = Result<impl Iterator<Item = Bus
|
|||
Some(BusInfo {
|
||||
bus_id: rh.bus_id.to_owned(),
|
||||
path: rh.path.to_owned(),
|
||||
parent_path: parent_path.to_owned(),
|
||||
busnum: rh.busnum,
|
||||
controller_type: driver.as_ref().and_then(|p| UsbControllerType::from_str(p)),
|
||||
driver,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue