Skip to content

Commit ee008e1

Browse files
authored
Fix warnings from existential and deprecation (#3800)
* Use explicit 'any' for existential. * Fix deprecation warning.
1 parent 2ef7c09 commit ee008e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/ComposableArchitecture/Effect.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ extension Effect {
423423
name: String?,
424424
priority: TaskPriority? = nil,
425425
operation: @escaping @Sendable () async throws -> Success
426-
) where Failure == Error {
426+
) where Failure == any Error {
427427
self.init(priority: priority, operation: operation)
428428
}
429429
}

Sources/ComposableArchitecture/Macros.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public macro Reducer(state: _SynthesizedConformance..., action: _SynthesizedConf
5656
#endif
5757
public struct _SynthesizedConformance: Sendable {}
5858

59+
@available(*, deprecated, message: "Define your conformance using an extension, instead")
5960
extension _SynthesizedConformance {
6061
/// Extends the `State` or `Action` types that ``Reducer()`` creates with the `Codable`
6162
/// protocol.

0 commit comments

Comments
 (0)