Skip to content

Commit

Permalink
style: replace ← pure with := in matches
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser committed Nov 2, 2024
1 parent 1357f4f commit b7ff016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Qq/ForLean/ReduceEval.lean
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def throwFailedToEval (e : Expr) : MetaM α :=

private partial def evalList [ReduceEval α] (e : Expr) : MetaM (List α) := do
let e ← whnf e
let .const c _ ← pure e.getAppFn | throwFailedToEval e
let .const c _ := e.getAppFn | throwFailedToEval e
let nargs := e.getAppNumArgs
match c, nargs with
| ``List.nil, 1 => pure []
Expand Down
2 changes: 1 addition & 1 deletion Qq/Macro.lean
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ partial def unquoteExpr (e : Expr) : UnquoteM Expr := do
}
return fv
let e ← whnf e
let .const c _ ← pure e.getAppFn | throwError "unquoteExpr: {e} : {eTy}"
let .const c _ := e.getAppFn | throwError "unquoteExpr: {e} : {eTy}"
let nargs := e.getAppNumArgs
match c, nargs with
| ``betaRev', 2 => return betaRev' (← unquoteExpr (e.getArg! 0)) (← unquoteExprList (e.getArg! 1))
Expand Down

0 comments on commit b7ff016

Please sign in to comment.