Skip to content

Commit

Permalink
Updated read.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
cliu2018 committed Sep 22, 2023
1 parent 5b87a8f commit ddcc8b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/binary/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,18 +905,18 @@ where
}


impl<'a, T1, T2, T3, T4> ReadUnchecked<'a> for (T1, T2, T3, T4)
impl<T1, T2, T3, T4> ReadUnchecked for (T1, T2, T3, T4)
where
T1: ReadUnchecked<'a>,
T2: ReadUnchecked<'a>,
T3: ReadUnchecked<'a>,
T4: ReadUnchecked<'a>,
T1: ReadUnchecked,
T2: ReadUnchecked,
T3: ReadUnchecked,
T4: ReadUnchecked,
{
type HostType = (T1::HostType, T2::HostType, T3::HostType, T4::HostType);

const SIZE: usize = T1::SIZE + T2::SIZE + T3::SIZE + T4::SIZE;

unsafe fn read_unchecked(ctxt: &mut ReadCtxt<'a>) -> Self::HostType {
unsafe fn read_unchecked<'a>(ctxt: &mut ReadCtxt<'a>) -> Self::HostType {
let t1 = T1::read_unchecked(ctxt);
let t2 = T2::read_unchecked(ctxt);
let t3 = T3::read_unchecked(ctxt);
Expand Down

0 comments on commit ddcc8b4

Please sign in to comment.