Remove steal_storage

This commit is contained in:
Julien Cretin
2022-03-07 19:43:06 +01:00
parent 3211342934
commit dc00b94ee8
5 changed files with 48 additions and 50 deletions

View File

@@ -238,6 +238,11 @@ impl<S: Storage> Store<S> {
Ok(store)
}
/// Extracts the storage.
pub fn extract_storage(self) -> S {
self.storage
}
/// Iterates over the entries.
pub fn iter<'a>(&'a self) -> StoreResult<StoreIter<'a>> {
let head = or_invalid(self.head)?;
@@ -1162,11 +1167,6 @@ impl Store<BufferStorage> {
&mut self.storage
}
/// Extracts the storage.
pub fn extract_storage(self) -> BufferStorage {
self.storage
}
/// Returns the value of a possibly deleted entry.
///
/// If the value has been partially compacted, only return the non-compacted part. Returns an