diff options
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r-- | cli/module_graph.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs index d1e51bd4c..e86732b24 100644 --- a/cli/module_graph.rs +++ b/cli/module_graph.rs @@ -2300,10 +2300,11 @@ pub mod tests { .expect("should have checked"); assert!(result_info.maybe_ignored_options.is_none()); assert!(result_info.diagnostics.is_empty()); - let h = handler.lock().unwrap(); - assert_eq!(h.version_calls.len(), 2); - let ver0 = h.version_calls[0].1.clone(); - let ver1 = h.version_calls[1].1.clone(); + let (ver0, ver1) = { + let h = handler.lock().unwrap(); + assert_eq!(h.version_calls.len(), 2); + (h.version_calls[0].1.clone(), h.version_calls[1].1.clone()) + }; // let's do it all over again to ensure that the versions are determinstic let (graph, handler) = setup(specifier).await; |