Skip to content

Commit

Permalink
Also exclude optional vendor and model from criterion vector
Browse files Browse the repository at this point in the history
  • Loading branch information
andber1 authored and sirhcel committed Sep 27, 2024
1 parent 5dd4b83 commit 77b93ca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/posix/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ fn port_type(d: &libudev::Device) -> Result<SerialPortType> {
let usb_properties = vec![
d.property_value("ID_USB_VENDOR_ID"),
d.property_value("ID_USB_MODEL_ID"),
d.property_value("ID_USB_VENDOR"),
d.property_value("ID_USB_MODEL"),
]
.into_iter()
.collect::<Option<Vec<_>>>();
Expand Down

0 comments on commit 77b93ca

Please sign in to comment.