chore: Remove unnecessary unsafe's

This commit is contained in:
Leni Aniva 2023-11-06 11:43:57 -08:00
parent f5ed87f740
commit c5f563598d
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,7 @@ def parseCommand (s: String): Except String Protocol.Command := do
return { cmd := s.take offset, payload := payload }
| .none => throw "Command is empty"
unsafe def loop : MainM Unit := do
partial def loop : MainM Unit := do
let state ← get
let command ← (← IO.getStdin).getLine
if command.trim.length = 0 then return ()

View File

@ -6,8 +6,7 @@ import Test.Serial
open Pantograph.Test
unsafe def main := do
Lean.enableInitializersExecution
def main := do
Lean.initSearchPath (← Lean.findSysroot)
let suites := [