File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ impl SsCredential {
402
402
let attributes = self . search_attributes ( true ) ;
403
403
let search = collection. search_items ( attributes) . map_err ( decode_error) ?;
404
404
if require_unique {
405
- if search. len ( ) == 0 && require_unique {
405
+ if search. is_empty ( ) && require_unique {
406
406
return Err ( ErrorCode :: NoEntry ) ;
407
407
} else if search. len ( ) > 1 {
408
408
let mut creds: Vec < Box < Credential > > = vec ! [ ] ;
@@ -520,7 +520,7 @@ pub fn get_item_password(item: &Item) -> Result<String> {
520
520
decode_password ( bytes)
521
521
}
522
522
523
- //// Given an existing item, retrieve its secret.
523
+ /// Given an existing item, retrieve its secret.
524
524
pub fn get_item_secret ( item : & Item ) -> Result < Vec < u8 > > {
525
525
let secret = item. get_secret ( ) . map_err ( decode_error) ?;
526
526
Ok ( secret)
You can’t perform that action at this time.
0 commit comments