From 7fccd2d0f5e3e4c9972fef682cf6fb58ff282ebf Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 6 Jan 2021 11:52:13 +0100 Subject: [PATCH] update secret-service to ^2.0 --- Cargo.toml | 2 +- src/main.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5230ece..ef6e642 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ bodhi = "^1.0" chrono = "^0.4.10" dirs = "^3.0.1" rpassword = "^5.0.0" -secret-service = "1.1.0" +secret-service = "^2.0" serde = { version = "^1.0.104", features = ["derive"] } serde_json = "^1.0.44" structopt = { version = "^0.3.8", features = ["color", "suggestions", "wrap_help"] } diff --git a/src/main.rs b/src/main.rs index 37ec361..eb869d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,7 @@ #![warn(clippy::unwrap_used)] +use std::collections::HashMap; + use bodhi::*; use structopt::StructOpt; @@ -38,7 +40,8 @@ fn get_store_password(clear: bool) -> Result { }, }; - let attributes = vec![("bodhi-cli", "FAS Password")]; + let mut attributes = HashMap::new(); + attributes.insert("bodhi-cli", "FAS Password"); let store = |password: &str, replace: bool| { if let Err(error) = collection.create_item(