From 6a1738ceffb33c8e340e8f11cbecbc25edecb772 Mon Sep 17 00:00:00 2001 From: Muukii Date: Thu, 12 Dec 2024 17:46:10 +0900 Subject: [PATCH] fix warning --- Sources/Verge/Logging/MutationTrace.swift | 2 +- Tests/VergeTests/AccumulationTests.swift | 2 +- Tests/VergeTests/ActivityTests.swift | 2 +- Tests/VergeTests/Usage.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Verge/Logging/MutationTrace.swift b/Sources/Verge/Logging/MutationTrace.swift index f0e45d20b5..59810d5323 100644 --- a/Sources/Verge/Logging/MutationTrace.swift +++ b/Sources/Verge/Logging/MutationTrace.swift @@ -56,7 +56,7 @@ public struct MutationTrace: Encodable, Equatable, Sendable { } -extension StaticString: Encodable { +extension StaticString: @retroactive Encodable { public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() diff --git a/Tests/VergeTests/AccumulationTests.swift b/Tests/VergeTests/AccumulationTests.swift index bdc76a22a9..fe45bf0e17 100644 --- a/Tests/VergeTests/AccumulationTests.swift +++ b/Tests/VergeTests/AccumulationTests.swift @@ -73,7 +73,7 @@ final class AccumulationTests: XCTestCase { let expForCount = expectation(description: "count") expForCount.expectedFulfillmentCount = 1 - let sub = store.accumulate(queue: .mainIsolated()) { [weak self] in + let sub = store.accumulate(queue: .mainIsolated()) { $0.ifChanged(\.count) .dropFirst(2) diff --git a/Tests/VergeTests/ActivityTests.swift b/Tests/VergeTests/ActivityTests.swift index 572e4b1a70..f724dfcc84 100644 --- a/Tests/VergeTests/ActivityTests.swift +++ b/Tests/VergeTests/ActivityTests.swift @@ -26,7 +26,7 @@ class ActivityTests: XCTestCase { case didSendMessage } - final class Store: Verge.Store { + final class Store: Verge.Store, @unchecked Sendable { init() { super.init(initialState: .init(), logger: DefaultStoreLogger.default) diff --git a/Tests/VergeTests/Usage.swift b/Tests/VergeTests/Usage.swift index 6fddb263df..4808cbf349 100644 --- a/Tests/VergeTests/Usage.swift +++ b/Tests/VergeTests/Usage.swift @@ -9,7 +9,7 @@ struct RootState: Equatable { } -final class RootStore: Store { +final class RootStore: Store, @unchecked Sendable { }