From ddcc8b4ad99db621270d63648e392d8beeb5df24 Mon Sep 17 00:00:00 2001 From: cliu2018 Date: Fri, 22 Sep 2023 13:29:45 +1000 Subject: [PATCH] Updated read.rs --- src/binary/read.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/binary/read.rs b/src/binary/read.rs index 3355b15..5bd5d7f 100644 --- a/src/binary/read.rs +++ b/src/binary/read.rs @@ -905,18 +905,18 @@ where } -impl<'a, T1, T2, T3, T4> ReadUnchecked<'a> for (T1, T2, T3, T4) +impl 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);