From 6af99bc8d09b7b71cbafdfa38825ffbf2ae05a3a Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Thu, 14 Oct 2021 07:06:47 +0900 Subject: libbinder_rs: add SerializeArray for Option SerializeArray was implemented for Option<&SpIBinder>. When IBinder[] is passed as out parameter, we need Option as well. Bug: 151817759 Test: aidl_integration_test Change-Id: I10f54f091fb546eec0ddbed677a979359451e9d6 --- libs/binder/rust/src/proxy.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'libs') diff --git a/libs/binder/rust/src/proxy.rs b/libs/binder/rust/src/proxy.rs index 68fa34bb4a..6a4af077c5 100644 --- a/libs/binder/rust/src/proxy.rs +++ b/libs/binder/rust/src/proxy.rs @@ -430,6 +430,7 @@ impl SerializeOption for SpIBinder { impl SerializeArray for SpIBinder {} impl SerializeArray for Option<&SpIBinder> {} +impl SerializeArray for Option {} impl Deserialize for SpIBinder { fn deserialize(parcel: &Parcel) -> Result { -- cgit v1.2.3-59-g8ed1b