Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6af99bc8 authored by Jooyung Han's avatar Jooyung Han
Browse files

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
parent 58488fe0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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> {