commit | e2d6320982c83858d4422566268a87b7b4a074dd | [log] [tgz] |
---|---|---|
author | Pawan Wagh <waghpawan@google.com> | Wed Jan 04 01:12:14 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jan 04 01:12:14 2023 +0000 |
tree | a15cc460a328c822fc961606cc5b9838491313fa | |
parent | b5d5f8e27c025565fbd749eae7234ceec412b802 [diff] | |
parent | f63b965f70ac6f147529438f230a451128adb80d [diff] |
Merge "libbinder_rs : removing assert while reading parcel" am: 6d05a9744a am: 1bcef5c09f am: f63b965f70 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2373593 Change-Id: I99c553d0c479736e29c22cb1703cef07826143ef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libs/binder/rust/src/parcel.rs b/libs/binder/rust/src/parcel.rs index 53a24af..e4c568e 100644 --- a/libs/binder/rust/src/parcel.rs +++ b/libs/binder/rust/src/parcel.rs
@@ -566,9 +566,6 @@ impl<'a> ReadableSubParcel<'a> { /// Read a type that implements [`Deserialize`] from the sub-parcel. pub fn read<D: Deserialize>(&self) -> Result<D> { - // The caller should have checked this, - // but it can't hurt to double-check - assert!(self.has_more_data()); D::deserialize(&self.parcel) }