summaryrefslogtreecommitdiff
path: root/system/gd/rust/common/src
diff options
context:
space:
mode:
Diffstat (limited to 'system/gd/rust/common/src')
-rw-r--r--system/gd/rust/common/src/sys_prop.rs2
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.