Fix keyring Entry::new_with_target argument count

This commit is contained in:
Matt
2026-07-29 18:31:50 +00:00
parent dbe3c8d2a1
commit 72105a7085
+1 -1
View File
@@ -25,7 +25,7 @@ fn keyring_service() -> &'static str {
fn keyring_entry(connection_id: &str, field: &str) -> keyring::Entry { fn keyring_entry(connection_id: &str, field: &str) -> keyring::Entry {
let key = format!("{}:{}", connection_id, field); let key = format!("{}:{}", connection_id, field);
keyring::Entry::new(keyring_service(), &key) keyring::Entry::new(keyring_service(), &key)
.unwrap_or_else(|_| keyring::Entry::new_with_target(&key, keyring_service(), "", "").expect("failed to create keyring entry")) .expect("failed to create keyring entry")
} }
pub struct ConnectionManager { pub struct ConnectionManager {