mirror of
https://github.com/G2-Games/cross-usb.git
synced 2025-04-19 13:22:53 -05:00
Fixed clippy warnings
This commit is contained in:
parent
138d642fc9
commit
0af8b86c25
2 changed files with 2 additions and 4 deletions
|
@ -71,7 +71,7 @@ pub async fn get_device_filter(device_filter: Vec<DeviceFilter>) -> Result<UsbDe
|
||||||
// See if the device exists in the list
|
// See if the device exists in the list
|
||||||
if device_filter
|
if device_filter
|
||||||
.iter()
|
.iter()
|
||||||
.position(|info| {
|
.any(|info| {
|
||||||
let mut result = false;
|
let mut result = false;
|
||||||
|
|
||||||
if info.vendor_id.is_some() {
|
if info.vendor_id.is_some() {
|
||||||
|
@ -96,7 +96,6 @@ pub async fn get_device_filter(device_filter: Vec<DeviceFilter>) -> Result<UsbDe
|
||||||
|
|
||||||
result
|
result
|
||||||
})
|
})
|
||||||
.is_some()
|
|
||||||
{
|
{
|
||||||
device_info = Some(prelim_dev_inf)
|
device_info = Some(prelim_dev_inf)
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ pub async fn get_device_filter(
|
||||||
|
|
||||||
if device_filter
|
if device_filter
|
||||||
.iter()
|
.iter()
|
||||||
.position(|info| {
|
.any(|info| {
|
||||||
let mut result = false;
|
let mut result = false;
|
||||||
|
|
||||||
if info.vendor_id.is_some() {
|
if info.vendor_id.is_some() {
|
||||||
|
@ -141,7 +141,6 @@ pub async fn get_device_filter(
|
||||||
|
|
||||||
result
|
result
|
||||||
})
|
})
|
||||||
.is_some()
|
|
||||||
{
|
{
|
||||||
return Ok(UsbDevice { device });
|
return Ok(UsbDevice { device });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue