Skip to content

Commit 114a815

Browse files
committed
Fix typo/bug in the secret service multi-map utilities.
1 parent 689ab47 commit 114a815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/secret_service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,15 @@ impl SsCredential {
286286
/// (This is useful if [get_password](SsCredential::get_password)
287287
/// returns an [Ambiguous](ErrorCode::Ambiguous) error.)
288288
pub fn get_all_passwords(&self) -> Result<Vec<String>> {
289-
self.map_matching_items(get_item_password, true)
289+
self.map_matching_items(get_item_password, false)
290290
}
291291

292292
/// If there are multiple matching items for this credential, delete all of them.
293293
///
294294
/// (This is useful if [delete_credential](SsCredential::delete_credential)
295295
/// returns an [Ambiguous](ErrorCode::Ambiguous) error.)
296296
pub fn delete_all_passwords(&self) -> Result<()> {
297-
self.map_matching_items(delete_item, true)?;
297+
self.map_matching_items(delete_item, false)?;
298298
Ok(())
299299
}
300300

0 commit comments

Comments
 (0)