@@ -22,19 +22,19 @@ public extension Atom {
2222 /// - Parameter keyPath: A key path for the property of the original atom value.
2323 ///
2424 /// - Returns: An atom that provides the partial property of the original atom value.
25- #if hasFeature(InferSendableFromCaptures)
26- func changes< T: Equatable > (
27- of keyPath: KeyPath < Produced , T > & Sendable
28- ) -> ModifiedAtom < Self , ChangesOfModifier < Produced , T > > {
29- modifier ( ChangesOfModifier ( keyPath: keyPath) )
30- }
31- #else
32- func changes< T: Equatable > (
33- of keyPath: KeyPath < Produced , T >
34- ) -> ModifiedAtom < Self , ChangesOfModifier < Produced , T > > {
35- modifier ( ChangesOfModifier ( keyPath: keyPath) )
36- }
37- #endif
25+ #if hasFeature(InferSendableFromCaptures)
26+ func changes< T: Equatable > (
27+ of keyPath: KeyPath < Produced , T > & Sendable
28+ ) -> ModifiedAtom < Self , ChangesOfModifier < Produced , T > > {
29+ modifier ( ChangesOfModifier ( keyPath: keyPath) )
30+ }
31+ #else
32+ func changes< T: Equatable > (
33+ of keyPath: KeyPath < Produced , T >
34+ ) -> ModifiedAtom < Self , ChangesOfModifier < Produced , T > > {
35+ modifier ( ChangesOfModifier ( keyPath: keyPath) )
36+ }
37+ #endif
3838}
3939
4040/// A modifier that derives a partial property with the specified key path from the original atom
@@ -57,22 +57,22 @@ public struct ChangesOfModifier<Base, Produced: Equatable>: AtomModifier {
5757 }
5858 }
5959
60- #if hasFeature(InferSendableFromCaptures)
61- private let keyPath : KeyPath < Base , Produced > & Sendable
60+ #if hasFeature(InferSendableFromCaptures)
61+ private let keyPath : KeyPath < Base , Produced > & Sendable
6262
63- internal init ( keyPath: KeyPath < Base , Produced > & Sendable ) {
64- self . keyPath = keyPath
65- }
66- #else
67- private let _keyPath : UnsafeUncheckedSendable < KeyPath < Base , Produced > >
68- private var keyPath : KeyPath < Base , Produced > {
69- _keyPath. value
70- }
63+ internal init ( keyPath: KeyPath < Base , Produced > & Sendable ) {
64+ self . keyPath = keyPath
65+ }
66+ #else
67+ private let _keyPath : UnsafeUncheckedSendable < KeyPath < Base , Produced > >
68+ private var keyPath : KeyPath < Base , Produced > {
69+ _keyPath. value
70+ }
7171
72- internal init ( keyPath: KeyPath < Base , Produced > ) {
73- _keyPath = UnsafeUncheckedSendable ( keyPath)
74- }
75- #endif
72+ internal init ( keyPath: KeyPath < Base , Produced > ) {
73+ _keyPath = UnsafeUncheckedSendable ( keyPath)
74+ }
75+ #endif
7676
7777 /// A unique value used to identify the modifier internally.
7878 public var key : Key {
0 commit comments