Run clippy

This commit is contained in:
dylni
2019-11-30 14:53:45 -05:00
parent f7f0b78960
commit 6daf690df0
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- run: cargo build
- run: cargo clippy
test:
strategy:
matrix:
+1
View File
@@ -21,6 +21,7 @@ fn random_os_string(buffer_length: usize) -> Result<OsString, GetRandomError> {
{
// SAFETY: These bytes are random, so their values are arbitrary.
getrandom(unsafe {
#[allow(clippy::transmute_ptr_to_ptr)]
::std::mem::transmute::<&mut [u16], &mut [u8]>(&mut buffer)
})?;
Ok(::std::os::windows::ffi::OsStringExt::from_wide(&buffer))