Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Jan 10, 2025
1 parent 199ec56 commit d9533e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/uplc/src/optimize/shrinker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2095,15 +2095,11 @@ impl Program<Name> {
.apply(Term::bls12_381_g2_uncompress().apply(Term::byte_string(compressed)));
}

for default_func_index in context.builtins_map.keys().sorted().cloned() {
let default_func: DefaultFunction = default_func_index.try_into().unwrap();

for default_func in context.builtins_map.keys().sorted().cloned() {
term = term.lambda(default_func.wrapped_name());
}

for default_func_index in context.builtins_map.keys().sorted().cloned().rev() {
let default_func: DefaultFunction = default_func_index.try_into().unwrap();

for default_func in context.builtins_map.keys().sorted().cloned().rev() {
term = term.apply(if default_func.force_count() == 1 {
Term::Builtin(default_func).force()
} else {
Expand Down

0 comments on commit d9533e8

Please sign in to comment.