Simplify test helper

This commit is contained in:
Hugh Kaznowski
2026-09-07 01:53:16 +01:00
parent d0ce524e95
commit 55820982b1
3 changed files with 27 additions and 41 deletions
-2
View File
@@ -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();