fix(concurrency): make DateSection nonisolated to silence #expect warnings

5 个 Swift Testing macro 展开的 warning:DateSection 的 Equatable 协议被默认
推到 MainActor,但 #expect 在 nonisolated context 比较 — Swift 6 严格模式会报错。
This commit is contained in:
link2026
2026-05-25 23:39:52 +08:00
parent bb08243aa9
commit 22cf4bcefe

View File

@@ -1,6 +1,6 @@
import Foundation import Foundation
enum DateSection: Hashable { nonisolated enum DateSection: Hashable {
case today case today
case yesterday case yesterday
case thisWeek case thisWeek