Additional clippy fixes

This commit is contained in:
Tatsuyuki Ishi 2019-08-30 09:33:21 +09:00 • committed by mitchmindtree
parent d46415a6e7
commit 7f7914434c
2 changed files with 1 additions and 3 deletions

View file

@ -358,8 +358,7 @@ impl Device {
let err = BackendSpecificError { description };
return Err(err.into());
}
let ptr_usize: usize = *(&property_value.data as *const _ as *const usize);
let ptr_utf16 = ptr_usize as *const u16;
let ptr_utf16 = *(&property_value.data as *const _ as *const (*const u16));
// Find the length of the friendly name.
let mut len = 0;