From 1951d0451ba20e6895a2f9f111fde35e485ba88e Mon Sep 17 00:00:00 2001 From: Maxim Vezenov Date: Wed, 14 Aug 2024 19:10:07 +0000 Subject: [PATCH] Cargo fmt --- compiler/noirc_driver/src/lib.rs | 2 +- compiler/noirc_evaluator/src/ssa.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/noirc_driver/src/lib.rs b/compiler/noirc_driver/src/lib.rs index f3383ada490..c90304b053b 100644 --- a/compiler/noirc_driver/src/lib.rs +++ b/compiler/noirc_driver/src/lib.rs @@ -126,7 +126,7 @@ pub struct CompileOptions { /// Flag to turn off the compiler check for under constrained values. /// Warning: This can improve compilation speed but can also lead to correctness errors. - /// This check should always be run on production code. + /// This check should always be run on production code. #[arg(long)] pub skip_underconstrained_check: bool, } diff --git a/compiler/noirc_evaluator/src/ssa.rs b/compiler/noirc_evaluator/src/ssa.rs index b43194cc2ac..2925feb1bbe 100644 --- a/compiler/noirc_evaluator/src/ssa.rs +++ b/compiler/noirc_evaluator/src/ssa.rs @@ -123,7 +123,9 @@ pub(crate) fn optimize_into_acir( let ssa_level_warnings = if options.skip_underconstrained_check { vec![] } else { - time("After Check for Underconstrained Values", options.print_codegen_timings, || ssa.check_for_underconstrained_values()) + time("After Check for Underconstrained Values", options.print_codegen_timings, || { + ssa.check_for_underconstrained_values() + }) }; let brillig = time("SSA to Brillig", options.print_codegen_timings, || { ssa.to_brillig(options.enable_brillig_logging)