Fix swift 6 error
This commit is contained in:
@@ -9,9 +9,11 @@ struct HtmlElement {
|
||||
let type:String
|
||||
}
|
||||
|
||||
nonisolated(unsafe) let _stderr = stderr
|
||||
|
||||
struct StandardError: TextOutputStream {
|
||||
mutating func write(_ string: String) {
|
||||
for byte in string.utf8 { putc(numericCast(byte), stderr) }
|
||||
for byte in string.utf8 { putc(numericCast(byte), _stderr) }
|
||||
}
|
||||
}
|
||||
nonisolated(unsafe) var standardError: StandardError = StandardError()
|
||||
|
||||
Reference in New Issue
Block a user