Remove unnecessar PhantomData
This commit is contained in:
parent
82300039fc
commit
b64819f28b
3 changed files with 21 additions and 14 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue