Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroProofs committed Sep 12, 2024
1 parent 3f2de26 commit 16e222e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/aiken-lang/src/gen_uplc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2861,7 +2861,7 @@ impl<'a> CodeGenerator<'a> {
props.final_clause,
);

if &elem_name != DISCARDED && !defined_tails.is_empty() {
if elem_name != DISCARDED && !defined_tails.is_empty() {
list_tail = Some((tail.unwrap().to_string(), elem_name.to_string()));
}

Expand Down
2 changes: 1 addition & 1 deletion crates/aiken-lang/src/gen_uplc/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ pub fn identify_recursive_static_params(
// - a variable that is bound to a different name
// - any other type of expression
let param_is_different = match arg {
AirTree::Var { name, .. } => name != param || false,
AirTree::Var { name, .. } => name != param,
_ => true,
};
// If so, then we disqualify this parameter from being a recursive static parameter
Expand Down

0 comments on commit 16e222e

Please sign in to comment.