We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6ea0ce commit a7f4026Copy full SHA for a7f4026
1 file changed
src/keyring/windows.rs
@@ -56,7 +56,7 @@ impl DynKeyRing for WindowsOsKeyRing {
56
57
let credential: CREDENTIALW = unsafe { *pcredential };
58
59
- let mut in_blob = CRYPT_INTEGER_BLOB {
+ let in_blob = CRYPT_INTEGER_BLOB {
60
cbData: credential.CredentialBlobSize,
61
pbData: credential.CredentialBlob,
62
};
@@ -102,7 +102,7 @@ impl DynKeyRing for WindowsOsKeyRing {
102
103
unsafe {
104
CryptProtectData(
105
- &mut in_blob,
+ &in_blob,
106
PCWSTR(target_name.as_ptr()),
107
None,
108
@@ -115,7 +115,7 @@ impl DynKeyRing for WindowsOsKeyRing {
115
116
secret_cp.zeroize();
117
118
- let mut credential = CREDENTIALW {
+ let credential = CREDENTIALW {
119
Flags: CRED_FLAGS(0),
120
Type: CRED_TYPE_GENERIC,
121
TargetName: PWSTR(target_name.as_mut_ptr()),
0 commit comments