Skip to content

Commit

Permalink
Clean up Clippy hint for checking for some interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sirhcel committed May 12, 2024
1 parent f3129b0 commit c4f2a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn parse_usb_port_info(hardware_id: &str, parent_hardware_id: Option<&str>) -> O
.name("iid")
.and_then(|m| u8::from_str_radix(m.as_str(), 16).ok());

if let Some(_) = interface {
if interface.is_some() {
// If this is a composite device, we need to parse the parent's HWID to get the correct information.
caps = re.captures(parent_hardware_id?)?;
}
Expand Down

0 comments on commit c4f2a6f

Please sign in to comment.