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
diff --git a/libs/binder/rust/src/proxy.rs b/libs/binder/rust/src/proxy.rs
index 68fa34b..6a4af07 100644
--- a/libs/binder/rust/src/proxy.rs
+++ b/libs/binder/rust/src/proxy.rs
@@ -430,6 +430,7 @@
impl SerializeArray for SpIBinder {}
impl SerializeArray for Option<&SpIBinder> {}
+impl SerializeArray for Option<SpIBinder> {}
impl Deserialize for SpIBinder {
fn deserialize(parcel: &Parcel) -> Result<SpIBinder> {