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 {
402402 let attributes = self . search_attributes ( true ) ;
403403 let search = collection. search_items ( attributes) . map_err ( decode_error) ?;
404404 if require_unique {
405- if search. len ( ) == 0 && require_unique {
405+ if search. is_empty ( ) && require_unique {
406406 return Err ( ErrorCode :: NoEntry ) ;
407407 } else if search. len ( ) > 1 {
408408 let mut creds: Vec < Box < Credential > > = vec ! [ ] ;
@@ -520,7 +520,7 @@ pub fn get_item_password(item: &Item) -> Result<String> {
520520 decode_password ( bytes)
521521}
522522
523- //// Given an existing item, retrieve its secret.
523+ /// Given an existing item, retrieve its secret.
524524pub fn get_item_secret ( item : & Item ) -> Result < Vec < u8 > > {
525525 let secret = item. get_secret ( ) . map_err ( decode_error) ?;
526526 Ok ( secret)
You can’t perform that action at this time.
0 commit comments