summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-11-08 17:08:24 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-11-08 17:08:24 +0000
commit06e8db0884c9164d97a1073d95de84bcc0dd94d1 (patch)
treebfa12a4c207adacc263d927a0c7c753ee29f0311
parent897c6c6751acb6995ee6a26d16a192fffcbccec8 (diff)
parent777c7018367792e445939a1c6e53ffa11cd134ad (diff)
Merge "Update needed for Rust v1.73.0" into main
-rw-r--r--libs/binder/rust/tests/ndk_rust_interop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/rust/tests/ndk_rust_interop.rs b/libs/binder/rust/tests/ndk_rust_interop.rs
index 37f182eb08..fbedfee956 100644
--- a/libs/binder/rust/tests/ndk_rust_interop.rs
+++ b/libs/binder/rust/tests/ndk_rust_interop.rs
@@ -58,7 +58,7 @@ pub unsafe extern "C" fn rust_call_ndk(service_name: *const c_char) -> c_int {
let wrong_service: Result<binder::Strong<dyn IBinderRustNdkInteropTestOther>, StatusCode> =
binder::get_interface(service_name);
match wrong_service {
- Err(e) if e == StatusCode::BAD_TYPE => {}
+ Err(StatusCode::BAD_TYPE) => {}
Err(e) => {
eprintln!("Trying to use a service via the wrong interface errored with unexpected error {:?}", e);
return e as c_int;