Windows: Enable clippy deny warnings (#9920)
~Waiting #9918~ Release Notes: - N/A
This commit is contained in:
parent
659ea7054a
commit
94c51c6ac9
9 changed files with 26 additions and 35 deletions
|
@ -722,9 +722,7 @@ impl Platform for WindowsPlatform {
|
|||
(*credentials).CredentialBlobSize as usize,
|
||||
)
|
||||
};
|
||||
let mut password: Vec<u8> = Vec::with_capacity(credential_blob.len());
|
||||
password.resize(password.capacity(), 0);
|
||||
password.clone_from_slice(&credential_blob);
|
||||
let password = credential_blob.to_vec();
|
||||
unsafe { CredFree(credentials as *const c_void) };
|
||||
Ok(Some((username, password)))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue