Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
update secret-service to ^2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
decathorpe committed Jan 6, 2021
1 parent 6bf22a6 commit 7fccd2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![warn(clippy::unwrap_used)]

use std::collections::HashMap;

use bodhi::*;
use structopt::StructOpt;

Expand Down Expand Up @@ -38,7 +40,8 @@ fn get_store_password(clear: bool) -> Result<String, String> {
},
};

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(
Expand Down

0 comments on commit 7fccd2d

Please sign in to comment.