Additional clippy fixes
This commit is contained in:
parent
d46415a6e7
commit
7f7914434c
|
@ -358,8 +358,7 @@ impl Device {
|
||||||
let err = BackendSpecificError { description };
|
let err = BackendSpecificError { description };
|
||||||
return Err(err.into());
|
return Err(err.into());
|
||||||
}
|
}
|
||||||
let ptr_usize: usize = *(&property_value.data as *const _ as *const usize);
|
let ptr_utf16 = *(&property_value.data as *const _ as *const (*const u16));
|
||||||
let ptr_utf16 = ptr_usize as *const u16;
|
|
||||||
|
|
||||||
// Find the length of the friendly name.
|
// Find the length of the friendly name.
|
||||||
let mut len = 0;
|
let mut len = 0;
|
||||||
|
|
|
@ -224,7 +224,6 @@ fn wait_for_handle_signal(handles: &[winnt::HANDLE]) -> Result<usize, BackendSpe
|
||||||
return Err(err);
|
return Err(err);
|
||||||
}
|
}
|
||||||
// Notifying the corresponding task handler.
|
// Notifying the corresponding task handler.
|
||||||
debug_assert!(result >= winbase::WAIT_OBJECT_0);
|
|
||||||
let handle_idx = (result - winbase::WAIT_OBJECT_0) as usize;
|
let handle_idx = (result - winbase::WAIT_OBJECT_0) as usize;
|
||||||
Ok(handle_idx)
|
Ok(handle_idx)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue