Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joachim Breitner <[email protected]>
  • Loading branch information
Kha and nomeata authored Jan 31, 2025
1 parent 6301b33 commit a1b980f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Environment.lean
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ def setState {σ : Type} (ext : EnvExtension σ) (env : Environment) (s : σ) :

-- `unsafe` fails to infer `Nonempty` here
private unsafe def getStateUnsafe {σ : Type} [Inhabited σ] (ext : EnvExtension σ)
(env : Environment) (asyncMode := ext.asyncMode) : σ :=
(env : Environment) (asyncMode : AsyncMode) : σ :=
-- safety: `ext`'s constructor is private, so we can assume the entry at `ext.idx` is of type `σ`
match asyncMode with
| .sync => ext.getStateImpl env.checked.get.extensions
Expand Down

0 comments on commit a1b980f

Please sign in to comment.