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:
Treehugger Robot 2024-02-13 22:22:52 +00:00 committed by Automerger Merge Worker
commit 1ce40098c8

View file

@ -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);