From 0eea671e650d02d764892d3e3a5eb1245a10fcd6 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 17 May 2026 11:19:15 -0700 Subject: [PATCH] Fix a weak var warning in Swift 6.3 --- Releasing.md | 2 +- Tests/AsyncMonitorTests/AsyncCancellableTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Releasing.md b/Releasing.md index 9ddc576..70d1481 100644 --- a/Releasing.md +++ b/Releasing.md @@ -1,6 +1,6 @@ # Releasing AsyncMonitor -There's no schedule here. Ship bug fixes whenever, features when they're ready, and breaking changes as rarely as you can stand. +There's no schedule here. Ship bug fixes whenever, features when they're ready, and breaking changes rarely. AsyncMonitor is a Swift package and a release is just a git tag. SwiftPM resolves versions directly from tags. diff --git a/Tests/AsyncMonitorTests/AsyncCancellableTests.swift b/Tests/AsyncMonitorTests/AsyncCancellableTests.swift index 7fd5fb3..06c6f76 100644 --- a/Tests/AsyncMonitorTests/AsyncCancellableTests.swift +++ b/Tests/AsyncMonitorTests/AsyncCancellableTests.swift @@ -6,7 +6,7 @@ import Testing @Test func storeInsertsIntoSetAndKeepsSubjectAlive() throws { var subject: TestCancellable? = TestCancellable() - weak var weakSubject: TestCancellable? = subject + weak let weakSubject: TestCancellable? = subject try #require(subject).store(in: &cancellables) #expect(cancellables.count == 1) subject = nil