Skip to content

Commit ddcd641

Browse files
authored
Remove unnecessary @unchecked Sendable. (pointfreeco#266)
1 parent 15a98be commit ddcd641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftNavigation/Observe.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ private func onChange(
172172
/// }
173173
/// }
174174
/// ```
175-
public final class ObserveToken: @unchecked Sendable, HashableObject {
175+
public final class ObserveToken: Sendable, HashableObject {
176176
fileprivate let _isCancelled = LockIsolated(false)
177-
public var onCancel: @Sendable () -> Void
177+
public let onCancel: @Sendable () -> Void
178178

179179
public var isCancelled: Bool {
180180
_isCancelled.withValue { $0 }

0 commit comments

Comments
 (0)