Implement Garbage Collection
This commit is contained in:
parent
1086b2fc5e
commit
f3fc67cbbc
4 changed files with 43 additions and 20 deletions
|
|
@ -49,10 +49,12 @@ impl <T>EntryDetailed<T> {
|
|||
Ok(EntryDetailed { header, file_position, data })
|
||||
}
|
||||
|
||||
pub fn forget(self) -> Entry<T> {
|
||||
pub fn forget(&self) -> Entry<T>
|
||||
where T: Clone
|
||||
{
|
||||
Entry {
|
||||
header: self.header.into(),
|
||||
data: self.data,
|
||||
header: self.header.clone().into(),
|
||||
data: self.data.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue