From 44586e089deb66bf3596671d83a37912382c213c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 21 Apr 2025 12:52:42 +0200 Subject: [PATCH] Fix the retrieval of the doc in scope --- crates/milli/src/update/new/document.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);