diff --git a/crates/milli/src/update/new/document.rs b/crates/milli/src/update/new/document.rs index ab11148e5..0596c3337 100644 --- a/crates/milli/src/update/new/document.rs +++ b/crates/milli/src/update/new/document.rs @@ -495,7 +495,7 @@ impl<'doc> Versions<'doc> { let _ = engine.eval_ast_with_scope::(&mut scope, edit_function).unwrap(); data = RawMap::with_hasher_in(FxBuildHasher, doc_alloc); - match scope.get_value::>("doc").unwrap() { + match scope.get_value::("doc") { Some(map) => { for (key, value) in map { let mut vec = bumpalo::collections::Vec::new_in(doc_alloc); @@ -520,7 +520,7 @@ impl<'doc> Versions<'doc> { let _ = engine.eval_ast_with_scope::(&mut scope, edit_function).unwrap(); data = RawMap::with_hasher_in(FxBuildHasher, doc_alloc); - match scope.get_value::>("doc").unwrap() { + match scope.get_value::("doc") { Some(map) => { for (key, value) in map { let mut vec = bumpalo::collections::Vec::new_in(doc_alloc);