Merge "Prefer .first()
to .get(0)
" into main am: b4e19af8c7
Original change: https://android-review.googlesource.com/c/platform/system/security/+/2956141 Change-Id: I52d1d4cef2f2b5db1badd22b479107ab29dcbff7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1ce40098c8
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ fn keystore2_list_entries_success() {
|
|||
let key_descriptors = keystore2.listEntries(Domain::APP, -1).unwrap();
|
||||
assert_eq!(1, key_descriptors.len());
|
||||
|
||||
let key = key_descriptors.get(0).unwrap();
|
||||
let key = key_descriptors.first().unwrap();
|
||||
assert_eq!(key.alias, Some(alias));
|
||||
assert_eq!(key.nspace, GRANTEE_UID.try_into().unwrap());
|
||||
assert_eq!(key.domain, Domain::APP);
|
||||
|
|
Loading…
Reference in a new issue