Clean up key path bitcasting. (#3411) #6039
Annotations
8 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Sources/ComposableArchitecture/SharedState/PersistenceKey/AppStorageKeyPathKey.swift#L28
stored property 'keyPath' of 'Sendable'-conforming generic struct 'AppStorageKeyPathKey' has non-sendable type '_SendableReferenceWritableKeyPath<UserDefaults, Value>' (aka 'ReferenceWritableKeyPath<UserDefaults, Value>')
|
Sources/ComposableArchitecture/SharedState/Shared.swift#L17
stored property 'keyPath' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type '_SendableAnyKeyPath' (aka 'AnyKeyPath')
|
Sources/ComposableArchitecture/SwiftUI/Binding.swift#L147
stored property 'keyPath' of 'Sendable'-conforming generic struct 'BindingAction' has non-sendable type '_SendablePartialKeyPath<Root>' (aka 'PartialKeyPath<Root>')
|
Sources/ComposableArchitecture/Internal/KeyPath+Sendable.swift#L26
'unsafeBitCast' from 'AnyKeyPath' to '_SendableAnyKeyPath' (aka 'AnyKeyPath') is unnecessary and can be removed
|
Sources/ComposableArchitecture/SharedState/PersistenceKey/AppStorageKeyPathKey.swift#L28
stored property 'keyPath' of 'Sendable'-conforming generic struct 'AppStorageKeyPathKey' has non-sendable type '_SendableReferenceWritableKeyPath<UserDefaults, Value>' (aka 'ReferenceWritableKeyPath<UserDefaults, Value>')
|
Sources/ComposableArchitecture/SharedState/Shared.swift#L17
stored property 'keyPath' of 'Sendable'-conforming generic struct 'Shared' has non-sendable type '_SendableAnyKeyPath' (aka 'AnyKeyPath')
|
Sources/ComposableArchitecture/SwiftUI/Binding.swift#L147
stored property 'keyPath' of 'Sendable'-conforming generic struct 'BindingAction' has non-sendable type '_SendablePartialKeyPath<Root>' (aka 'PartialKeyPath<Root>')
|
This job succeeded
Loading