Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Jul 20, 2024
1 parent cb44f52 commit b5fb3d1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/classic/clvm_tools/stages/stage_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ impl TRunProgram for DefaultProgramRunner {

run_program_with_pre_eval(
allocator,
&ChiaDialect::new(NO_UNKNOWN_OPS | ((new_operators as u32) * ENABLE_BLS_OPS_OUTSIDE_GUARD)),
&ChiaDialect::new(
NO_UNKNOWN_OPS | ((new_operators as u32) * ENABLE_BLS_OPS_OUTSIDE_GUARD),
),
program,
args,
max_cost,
Expand Down
15 changes: 10 additions & 5 deletions src/compiler/clvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use sha2::Digest;
use sha2::Sha256;

use crate::classic::clvm::__type_compatibility__::{bi_one, bi_zero};
use crate::classic::clvm_tools::stages::stage_0::{TRunProgram, RunProgramOption};
use crate::classic::clvm_tools::stages::stage_0::{RunProgramOption, TRunProgram};

use crate::compiler::prims;
use crate::compiler::runtypes::RunFailure;
Expand Down Expand Up @@ -396,10 +396,15 @@ fn apply_op(
let converted_args = convert_to_clvm_rs(allocator, wrapped_args.clone())?;

runner
.run_program(allocator, converted_app, converted_args, Some(RunProgramOption {
new_operators: true,
.. RunProgramOption::default()
}))
.run_program(
allocator,
converted_app,
converted_args,
Some(RunProgramOption {
new_operators: true,
..RunProgramOption::default()
}),
)
.map_err(|e| {
RunFailure::RunErr(
head.loc(),
Expand Down
2 changes: 1 addition & 1 deletion src/tests/compiler/optimizer/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn run_with_cost(
as_classic_env,
Some(RunProgramOption {
max_cost: Some(MAX_RUN_COST),
.. RunProgramOption::default()
..RunProgramOption::default()
}),
)
.map_err(|e| RunFailure::RunErr(sexp.loc(), format!("{} in {} {}", e.1, sexp, env)))
Expand Down

0 comments on commit b5fb3d1

Please sign in to comment.