chore: update dependencies

This commit is contained in:
2024-01-30 15:33:24 +07:00
parent 46ed3330fc
commit cc48a4f36b
18 changed files with 223 additions and 297 deletions

View File

@@ -126,9 +126,9 @@ pub fn secure_save(key: String, value: String) -> Result<(), ()> {
pub fn secure_load(key: String) -> Result<String, String> {
let entry = Entry::new("Lume", &key).expect("Failed to create entry");
if let Ok(password) = entry.get_password() {
Ok(password)
Ok(password.into())
} else {
Err("not found".to_string())
Err("Not found".into())
}
}