From 1a21fb10722dd87a857f8c583ecd1af7c1cb4a84 Mon Sep 17 00:00:00 2001 From: ychenfo Date: Wed, 25 Aug 2021 18:00:01 +0800 Subject: [PATCH] fix codegen test about top level composer return type change --- nac3core/src/codegen/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3core/src/codegen/test.rs b/nac3core/src/codegen/test.rs index cde701b25..50ed2e05c 100644 --- a/nac3core/src/codegen/test.rs +++ b/nac3core/src/codegen/test.rs @@ -48,7 +48,7 @@ fn test_primitives() { "}; let statements = parse_program(source).unwrap(); - let (_, composer) = TopLevelComposer::new(); + let composer = TopLevelComposer::new(); let mut unifier = composer.unifier.clone(); let primitives = composer.primitives_ty; let top_level = Arc::new(composer.make_top_level_context()); @@ -190,7 +190,7 @@ fn test_simple_call() { "}; let statements_2 = parse_program(source_2).unwrap(); - let (_, composer) = TopLevelComposer::new(); + let composer = TopLevelComposer::new(); let mut unifier = composer.unifier.clone(); let primitives = composer.primitives_ty; let top_level = Arc::new(composer.make_top_level_context());