diff options
| author | 2021-10-14 07:06:47 +0900 | |
|---|---|---|
| committer | 2021-10-14 09:21:41 +0900 | |
| commit | 6af99bc8d09b7b71cbafdfa38825ffbf2ae05a3a (patch) | |
| tree | 9d6e39d18accfacc839ab7f3d2b55f66be8eaa5c | |
| parent | 58488fe01f59a586b56078cc2ce79210b2aa2dc7 (diff) | |
libbinder_rs: add SerializeArray for Option<SpIBinder>
SerializeArray was implemented for Option<&SpIBinder>. When IBinder[] is
passed as out parameter, we need Option<SpIBinder> as well.
Bug: 151817759
Test: aidl_integration_test
Change-Id: I10f54f091fb546eec0ddbed677a979359451e9d6
| -rw-r--r-- | libs/binder/rust/src/proxy.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<SpIBinder> {} impl Deserialize for SpIBinder { fn deserialize(parcel: &Parcel) -> Result<SpIBinder> { |