Skip to content

Commit

Permalink
fix: remove nonexistent IOUSBHostDevice.bInterfaceNumber property access
Browse files Browse the repository at this point in the history
  • Loading branch information
doinkythederp committed Jul 17, 2024
1 parent 0943bf2 commit 889771c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/posix/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ fn port_type(service: io_object_t) -> SerialPortType {
.and_then(|interface| {
get_int_property(interface, "bInterfaceNumber", kCFNumberSInt8Type)
})
.or_else(|| get_int_property(usb_device, "bInterfaceNumber", kCFNumberSInt8Type))
.map(|x| x as u8),
})
} else if get_parent_device_by_type(service, bluetooth_device_class_name).is_some() {
Expand Down

0 comments on commit 889771c

Please sign in to comment.