diff --git a/crates/milli/src/update/new/document.rs b/crates/milli/src/update/new/document.rs index 0de14ba22..4ae6fc2e4 100644 --- a/crates/milli/src/update/new/document.rs +++ b/crates/milli/src/update/new/document.rs @@ -431,7 +431,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); @@ -456,7 +456,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);