Remove unnecessar PhantomData

This commit is contained in:
Yuriy Dupyn 2024-02-04 21:09:46 +01:00
parent 82300039fc
commit b64819f28b
3 changed files with 21 additions and 14 deletions

View file

@ -48,4 +48,11 @@ impl <T>EntryDetailed<T> {
.map_err(|e| Error::DecodeError(DecodeErrorKind::EntryData, e))?;
Ok(EntryDetailed { header, file_position, data })
}
pub fn forget(self) -> Entry<T> {
Entry {
header: self.header.into(),
data: self.data,
}
}
}