Skip to content

Commit

Permalink
Revert "Too aggressive clippy"
Browse files Browse the repository at this point in the history
This reverts commit 55c2208.
  • Loading branch information
prozacchiwawa committed Sep 11, 2024
1 parent 55c2208 commit e9afb32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/classic/clvm_tools/cmds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,10 +1165,9 @@ pub fn launch_tool(stdout: &mut Stream, args: &[String], tool_name: &str, defaul
}),
_ => None,
})
.map(|st| {
.inspect(|st| {
emit_symbol_output = true;
symbol_table = Some(st.clone());
st
});

if let Some(ArgumentValue::ArgBool(true)) = parsed_args.get("verbose") {
Expand Down
3 changes: 1 addition & 2 deletions src/classic/clvm_tools/stages/stage_2/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ pub fn do_com_prog(
disassemble(allocator, symbol_table, None),
);
}
do_com_prog_(allocator, prog, macro_lookup, symbol_table, run_program).map(|x| {
do_com_prog_(allocator, prog, macro_lookup, symbol_table, run_program).inspect(|x| {
if DIAG_OUTPUT {
println!(
"DO_COM_PROG {}: {} MACRO {} SYMBOLS {} RESULT {}",
Expand All @@ -610,7 +610,6 @@ pub fn do_com_prog(
disassemble(allocator, x.1, None)
);
}
x
})
}

Expand Down
5 changes: 2 additions & 3 deletions src/classic/clvm_tools/stages/stage_2/optimize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,15 +737,14 @@ pub fn optimize_sexp(
if DIAG_OPTIMIZATIONS {
println!("START OPTIMIZE {}", disassemble(allocator, r, None));
}
optimize_sexp_(allocator, &optimized, r, eval_f).map(|x| {
optimize_sexp_(allocator, &optimized, r, eval_f).inspect(|x| {
if DIAG_OPTIMIZATIONS {
println!(
"OPTIMIZE_SEXP {} GIVING {}",
disassemble(allocator, r, None),
disassemble(allocator, x, None)
disassemble(allocator, *x, None)
);
}
x
})
}

Expand Down

0 comments on commit e9afb32

Please sign in to comment.