diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-02-09 02:09:25 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-02-09 02:09:25 +0000 |
commit | 260f34b984915be6f8bea511be1f0bbd22c933d9 (patch) | |
tree | 00ea3915fb0b19665d0e08fb1ac22205eea9a586 /system/gd/rust/common/src | |
parent | afb621b74522cd1cecfccbd59d9dadfb51e9aeed (diff) | |
parent | 5f48c3a4c824d86b7fef31eb02722ad5c2609957 (diff) |
Snap for 8160141 from 5f48c3a4c824d86b7fef31eb02722ad5c2609957 to tm-release
Change-Id: I628db1fb59c4af696366e2acdf5d111dd3463c8e
Diffstat (limited to 'system/gd/rust/common/src')
-rw-r--r-- | system/gd/rust/common/src/sys_prop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/gd/rust/common/src/sys_prop.rs b/system/gd/rust/common/src/sys_prop.rs index 188669e2fb..c63cd48efd 100644 --- a/system/gd/rust/common/src/sys_prop.rs +++ b/system/gd/rust/common/src/sys_prop.rs @@ -3,7 +3,7 @@ /// Gets the value of a system property on Android #[cfg(target_os = "android")] pub fn get(name: &str) -> Option<String> { - rustutils::system_properties::read(name).ok() + rustutils::system_properties::read(name).unwrap_or(None) } /// Fake getter for non-Android, which will always return nothing. |