Windows: Enable clippy deny warnings (#9920)

~Waiting #9918~

Release Notes:

- N/A
This commit is contained in:
白山風露 2024-03-29 00:55:35 +09:00 committed by GitHub
parent 659ea7054a
commit 94c51c6ac9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 26 additions and 35 deletions

View file

@ -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)))
}