Skip to content

Commit

Permalink
Merge pull request #213 from brotskydotcom/attributes
Browse files Browse the repository at this point in the history
Fix erroneous doc reference.
  • Loading branch information
brotskydotcom authored Sep 19, 2024
2 parents 11ace18 + 4905064 commit 27a7b35
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/secret_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,13 @@ impl CredentialApi for SsCredential {
}

/// Get attributes on a unique matching item, if it exists
///
/// Same error conditions as [get_secret].
fn get_attributes(&self) -> Result<HashMap<String, String>> {
let attributes: Vec<HashMap<String, String>> =
self.map_matching_items(get_item_attributes, true)?;
Ok(attributes.into_iter().next().unwrap())
}

/// Update attributes on a unique matching item, if it exists
///
/// Same error conditions as [get_secret].
fn update_attributes(&self, attributes: &HashMap<&str, &str>) -> Result<()> {
self.map_matching_items(|i| update_item_attributes(i, attributes), true)?;
Ok(())
Expand Down

0 comments on commit 27a7b35

Please sign in to comment.