Simplify test helper
This commit is contained in:
@@ -122,9 +122,7 @@ impl EngineSnapshot {
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl EngineSnapshot {
|
||||
pub(crate) fn from_index(index: BTreeMap<IndexKey, DataValue>) -> Self {
|
||||
let mut snapshot = EngineSnapshot { index, ..Default::default() };
|
||||
snapshot.rebuild_regex_caches();
|
||||
|
||||
Reference in New Issue
Block a user