From 658736afe9599fc1f583728e62b1d9c0b91deabd Mon Sep 17 00:00:00 2001 From: Aron Zwaan Date: Wed, 23 Oct 2024 15:06:50 +0200 Subject: [PATCH] Binding --- scopegraphs/src/resolve/lookup.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scopegraphs/src/resolve/lookup.rs b/scopegraphs/src/resolve/lookup.rs index 21c0535..fd8dfc6 100644 --- a/scopegraphs/src/resolve/lookup.rs +++ b/scopegraphs/src/resolve/lookup.rs @@ -473,13 +473,12 @@ mod tests { let_lex.close(); let_def.close(); - let env = scope_graph + let query = scope_graph .query() .with_path_wellformedness(query_regex!(Lbl: Lex* Imp? Def)) .with_data_wellformedness(TData::matcher_fut("x")) - .with_label_order(label_order!(Lbl: Def < Imp < Lex)) - .resolve(s_let) - .await; + .with_label_order(label_order!(Lbl: Def < Imp < Lex)); + let env = query.resolve(s_let).await; let env_vec = env.into_iter().collect::>(); assert_eq!(1, env_vec.len());