From 88c40a590e729d6ad203c623c5113dfaf093d6ba Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Tue, 21 Jan 2025 12:49:29 -0800 Subject: [PATCH] Remove unnecessary @unchecked Sendable. --- Sources/SwiftNavigation/Observe.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftNavigation/Observe.swift b/Sources/SwiftNavigation/Observe.swift index d76759d24..891052840 100644 --- a/Sources/SwiftNavigation/Observe.swift +++ b/Sources/SwiftNavigation/Observe.swift @@ -172,9 +172,9 @@ private func onChange( /// } /// } /// ``` -public final class ObserveToken: @unchecked Sendable, HashableObject { +public final class ObserveToken: Sendable, HashableObject { fileprivate let _isCancelled = LockIsolated(false) - public var onCancel: @Sendable () -> Void + public let onCancel: @Sendable () -> Void public var isCancelled: Bool { _isCancelled.withValue { $0 }