From 458ed988c2e9c48623d49ed5549c5765a67be342 Mon Sep 17 00:00:00 2001 From: Tom French Date: Thu, 18 May 2023 05:39:15 +0100 Subject: [PATCH] chore: fix build --- crates/nargo_cli/src/cli/check_cmd.rs | 2 +- crates/nargo_cli/src/cli/compile_cmd.rs | 2 +- crates/nargo_cli/src/cli/test_cmd.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nargo_cli/src/cli/check_cmd.rs b/crates/nargo_cli/src/cli/check_cmd.rs index 921b0dc0b08..e67e4b69793 100644 --- a/crates/nargo_cli/src/cli/check_cmd.rs +++ b/crates/nargo_cli/src/cli/check_cmd.rs @@ -35,7 +35,7 @@ fn check_from_path>( let mut driver = Resolver::resolve_root_manifest( p.as_ref(), backend.np_language(), - Box::new(backend.supports_opcode), + Box::new(|op| backend.supports_opcode(op)), )?; driver.check_crate(compile_options).map_err(|_| CliError::CompilationError)?; diff --git a/crates/nargo_cli/src/cli/compile_cmd.rs b/crates/nargo_cli/src/cli/compile_cmd.rs index 90e472e214a..dc90617b894 100644 --- a/crates/nargo_cli/src/cli/compile_cmd.rs +++ b/crates/nargo_cli/src/cli/compile_cmd.rs @@ -92,7 +92,7 @@ fn setup_driver( Resolver::resolve_root_manifest( program_dir, backend.np_language(), - Box::new(backend.supports_opcode), + Box::new(|op| backend.supports_opcode(op)), ) } diff --git a/crates/nargo_cli/src/cli/test_cmd.rs b/crates/nargo_cli/src/cli/test_cmd.rs index c3591f41e22..67ff51a2732 100644 --- a/crates/nargo_cli/src/cli/test_cmd.rs +++ b/crates/nargo_cli/src/cli/test_cmd.rs @@ -40,7 +40,7 @@ fn run_tests( let mut driver = Resolver::resolve_root_manifest( program_dir, backend.np_language(), - Box::new(backend.supports_opcode), + Box::new(|op| backend.supports_opcode(op)), )?; driver.check_crate(compile_options).map_err(|_| CliError::CompilationError)?;