platform_system_security/keystore2/legacykeystore
David Drysdale 5238d77a83 Simplify map_or_log_err
All (non-test) invocations use the same second argument `Ok` (which
actually acts as a 1-arg closure `|v| Ok(v)`), so no need to have it as
a parameter.  The common second argument just maps `Ok(v)` to `Ok(v)`,
which means that `map_err()` can be used instead of `map_or_else()`,
and the same type parameter is used for both input and output.

Test: legacykeystore_test
Test: keystore2_test
Flag: None, pure refactor
Change-Id: I46b6e327d0b546df6be6664781a52bb888c04eca
2024-06-07 16:34:53 +00:00
..
Android.bp Format Android.bp files with bpfmt 2024-01-18 08:34:35 +01:00
lib.rs Simplify map_or_log_err 2024-06-07 16:34:53 +00:00
TEST_MAPPING Keystore 2.0 legacy Keystore: Cleanup when app/user removed. 2021-07-02 09:28:25 -07:00