Skip to content

Commit 7ee4c72

Browse files
committed
Fix warnings and errors in tests
1 parent 8ced752 commit 7ee4c72

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/WAT/Location.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// A location in a WAT source file.
2-
public struct Location: Equatable, CustomDebugStringConvertible {
2+
public struct Location: Equatable, CustomDebugStringConvertible, Sendable {
33
let index: Lexer.Index
44
let source: String.UnicodeScalarView
55

Sources/WIT/Diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct DiagnosticError: Error {
66
let diagnostic: Diagnostic
77
}
88

9-
public struct Diagnostic {
9+
public struct Diagnostic: Sendable {
1010

1111
public let message: String
1212
var textRange: TextRange?

Tests/WasmKitTests/Spectest/Spectest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ struct NullSpectestProgressReporter: SpectestProgressReporter {
4848

4949
struct StderrSpectestProgressReporter: SpectestProgressReporter {
5050
func log(_ message: String, verbose: Bool) {
51-
fputs(message + "\n", stderr)
51+
fputs(message + "\n", FileHandle.standardError.fileDescriptor)
5252
}
5353
func log(_ message: String, path: String, location: Location, verbose: Bool) {
5454
let (line, _) = location.computeLineAndColumn()
55-
fputs("\(path):\(line): " + message + "\n", stderr)
55+
fputs("\(path):\(line): " + message + "\n", FileHandle.standardError.fileDescriptor)
5656
}
5757
}
5858

0 commit comments

Comments
 (0)