Skip to content

Commit 82d457f

Browse files
authored
chore: fix deprecation warning (#169)
1 parent 0cef4e5 commit 82d457f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProofWidgets/Component/OfRpcMethod.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def MyComponent.rpc (ps : MyProps) : RequestM (RequestTask Html) :=
6363
```
6464
-/
6565
elab "mk_rpc_widget%" fn:term : term <= expectedType => do
66-
let α ← mkFreshExprMVar (some (.sort levelOne)) (userName := `α)
66+
let α ← mkFreshExprMVar (some (.sort .one)) (userName := `α)
6767
let compT ← mkAppM ``Component #[α]
6868
if !(← isDefEq expectedType compT) then
6969
throwError "expected type{indentD expectedType}\nis not of the form{indentD compT}"

0 commit comments

Comments
 (0)