Skip to content

Commit a1b980f

Browse files
Khanomeata
andauthored
Apply suggestions from code review
Co-authored-by: Joachim Breitner <mail@joachim-breitner.de>
1 parent 6301b33 commit a1b980f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lean/Environment.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ def setState {σ : Type} (ext : EnvExtension σ) (env : Environment) (s : σ) :
924924

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

0 commit comments

Comments
 (0)