enable experimental:strictDefs (#24225)

This commit is contained in:
ringabout
2024-11-24 05:01:39 +08:00
committed by GitHub
parent 555191a3f0
commit 2df633180a
86 changed files with 276 additions and 255 deletions

View File

@@ -45,7 +45,7 @@ when not defined(windows) and not disableSSLTesting():
proc runServer(port: Port): bool {.thread.} =
## Run a trivial HTTPS server in a {.thread.}
## Exit after serving one request
result = false
var socket = newSocket()
socket.setSockOpt(OptReusePort, true)
socket.bindAddr(port)
@@ -55,7 +55,7 @@ when not defined(windows) and not disableSSLTesting():
## Handle one connection
socket.listen()
var client: Socket
var client: Socket = default(Socket)
var address = ""
log "server: ready"