Skip to content

Commit

Permalink
add function for data lookup empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Leouarz committed Feb 19, 2024
1 parent 2c63a37 commit b8e8a5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/data_lookup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ impl DataLookup {

Ok(Self { index })
}

/// This function is only used when something has gone wrong during header extension building
pub fn new_empty() -> Self {
Self { index: Vec::new() }
}
}

impl TryFrom<CompactDataLookup> for DataLookup {
Expand Down

0 comments on commit b8e8a5d

Please sign in to comment.