Skip to content

Commit 9f4a292

Browse files
committed
chore: Clean up new lint flagged by swift-format in soundness check.
1 parent bfdfbad commit 9f4a292

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Sources/Instrumentation/Locks.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ import Android
3535
#elseif canImport(Musl)
3636
import Musl
3737
#elseif canImport(WASILibc)
38-
import WASILibc
39-
#if canImport(wasi_pthread)
40-
import wasi_pthread
41-
#endif
38+
import WASILibc
39+
#if canImport(wasi_pthread)
40+
import wasi_pthread
41+
#endif
4242
#else
4343
#error("Unsupported runtime")
4444
#endif

Sources/Tracing/TracingTime.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ import Android
2424
#elseif canImport(Musl)
2525
import Musl
2626
#elseif canImport(WASILibc)
27-
import WASILibc
27+
import WASILibc
2828
#else
2929
#error("Unsupported runtime")
3030
#endif
3131

3232
#if canImport(_CWASI)
33-
import _CWASI
33+
import _CWASI
3434
#endif
3535

3636
public protocol TracerInstant: Comparable, Hashable, Sendable {
@@ -91,9 +91,9 @@ public struct DefaultTracerClock {
9191
public var now: Self.Instant {
9292
var ts = timespec()
9393
#if os(WASI)
94-
CWASI_clock_gettime_realtime(&ts)
94+
CWASI_clock_gettime_realtime(&ts)
9595
#else
96-
clock_gettime(CLOCK_REALTIME, &ts)
96+
clock_gettime(CLOCK_REALTIME, &ts)
9797
#endif
9898
/// We use unsafe arithmetic here because `UInt64.max` nanoseconds is more than 580 years,
9999
/// and the odds that this code will still be running 530 years from now is very, very low,

0 commit comments

Comments
 (0)