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

Commit f63b965f authored by Pawan Wagh's avatar Pawan Wagh Committed by Automerger Merge Worker
Browse files

Merge "libbinder_rs : removing assert while reading parcel" am: 6d05a974 am: 1bcef5c0

parents 455e3e0c 1bcef5c0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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)
    }