Skip to content

Commit 366de8c

Browse files
committed
clippy fixes
Signed-off-by: Michael Lodder <redmike7@gmail.com>
1 parent 11bfdf2 commit 366de8c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/keyring/macos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl MacOsKeyRing {
6464
&search_criteria["server"],
6565
security_domain,
6666
&search_criteria["account"],
67-
&path,
67+
path,
6868
port,
6969
protocol,
7070
authentication_type,

src/keyring/windows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl DynKeyRing for WindowsOsKeyRing {
108108
};
109109
unsafe { CredFree(pcredential as *mut c_void) };
110110
unsafe { LocalFree(out_blob.pbData as *mut c_void) };
111-
res.map_err(|s| KeyRingError::from(s))
111+
res
112112
}
113113

114114
fn set_secret(&mut self, id: &str, secret: &[u8]) -> Result<()> {
@@ -282,7 +282,7 @@ unsafe fn get_credentials(id: &str, flags: u32) -> Result<Vec<(String, KeyRingSe
282282

283283
let secret = unsafe { std::slice::from_raw_parts(blob, blob_len) };
284284
let mut secret_u16 = vec![0; blob_len / 2];
285-
LittleEndian::read_u16_into(&secret, &mut secret_u16);
285+
LittleEndian::read_u16_into(secret, &mut secret_u16);
286286
let t = match String::from_utf16(secret_u16.as_slice()).map(|pass| pass.to_string()) {
287287
Ok(s) => s,
288288
Err(_) => {

0 commit comments

Comments
 (0)