Remove old comments

This commit is contained in:
Hinton 2022-03-25 13:53:30 +01:00
parent c8dd2fa0c4
commit 3d476ca9e8
1 changed files with 0 additions and 5 deletions

View File

@ -68,7 +68,6 @@ pub fn get_password_keytar<'a>(service: &str, account: &str) -> Result<String> {
return Err(anyhow!(unsafe { GetLastError() }.0.to_string()));
}
// Keytar compatible
let password = unsafe {
std::str::from_utf8_unchecked(std::slice::from_raw_parts(
(*credential).CredentialBlob,
@ -87,10 +86,6 @@ pub fn set_password(service: &str, account: &str, password: &str) -> Result<()>
dwHighDateTime: 0,
};
// Keytar compatible
// let credential = std::ffi::CString::new(password)?;
// let credential_len = password.len() as u32;
let credential = U16CString::from_str(password)?;
let credential_len = password.len() as u32 * 2;