Skip to content

Commit a7f4026

Browse files
committed
clippy and fmt
Signed-off-by: Michael Lodder <redmike7@gmail.com>
1 parent e6ea0ce commit a7f4026

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/keyring/windows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl DynKeyRing for WindowsOsKeyRing {
5656

5757
let credential: CREDENTIALW = unsafe { *pcredential };
5858

59-
let mut in_blob = CRYPT_INTEGER_BLOB {
59+
let in_blob = CRYPT_INTEGER_BLOB {
6060
cbData: credential.CredentialBlobSize,
6161
pbData: credential.CredentialBlob,
6262
};
@@ -102,7 +102,7 @@ impl DynKeyRing for WindowsOsKeyRing {
102102

103103
unsafe {
104104
CryptProtectData(
105-
&mut in_blob,
105+
&in_blob,
106106
PCWSTR(target_name.as_ptr()),
107107
None,
108108
None,
@@ -115,7 +115,7 @@ impl DynKeyRing for WindowsOsKeyRing {
115115

116116
secret_cp.zeroize();
117117

118-
let mut credential = CREDENTIALW {
118+
let credential = CREDENTIALW {
119119
Flags: CRED_FLAGS(0),
120120
Type: CRED_TYPE_GENERIC,
121121
TargetName: PWSTR(target_name.as_mut_ptr()),

0 commit comments

Comments
 (0)