Skip to content

Commit

Permalink
refactor: use simplified expression (#865)
Browse files Browse the repository at this point in the history
Signed-off-by: wangjingcun <[email protected]>
  • Loading branch information
wangjingcun authored Nov 7, 2024
1 parent e107556 commit 45660a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ff-macros/src/unroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn unroll(expr: &Expr, unroll_by: usize) -> Expr {
}) = *pat.clone()
{
// Don't know how to deal with these so skip and return the original.
if !by_ref.is_none() || !mutability.is_none() || !subpat.is_none() {
if by_ref.is_some() || mutability.is_some() || subpat.is_some() {
return forloop_with_body(new_body);
}
let idx = ident; // got the index variable name
Expand Down

0 comments on commit 45660a2

Please sign in to comment.