diff options
| -rw-r--r-- | libs/binder/rust/src/parcel.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libs/binder/rust/src/parcel.rs b/libs/binder/rust/src/parcel.rs index 53a24afcf0..e4c568eab2 100644 --- a/libs/binder/rust/src/parcel.rs +++ b/libs/binder/rust/src/parcel.rs @@ -566,9 +566,6 @@ pub struct ReadableSubParcel<'a> { 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) } |