Clippy fixes
This commit is contained in:
parent
3f2de2665d
commit
16e222e997
|
@ -2861,7 +2861,7 @@ impl<'a> CodeGenerator<'a> {
|
||||||
props.final_clause,
|
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()));
|
list_tail = Some((tail.unwrap().to_string(), elem_name.to_string()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -446,7 +446,7 @@ pub fn identify_recursive_static_params(
|
||||||
// - a variable that is bound to a different name
|
// - a variable that is bound to a different name
|
||||||
// - any other type of expression
|
// - any other type of expression
|
||||||
let param_is_different = match arg {
|
let param_is_different = match arg {
|
||||||
AirTree::Var { name, .. } => name != param || false,
|
AirTree::Var { name, .. } => name != param,
|
||||||
_ => true,
|
_ => true,
|
||||||
};
|
};
|
||||||
// If so, then we disqualify this parameter from being a recursive static parameter
|
// If so, then we disqualify this parameter from being a recursive static parameter
|
||||||
|
|
Loading…
Reference in New Issue