File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ extension Result {
49
49
/// - Returns: A `Result` instance with the result of evaluating `transform`
50
50
/// as the new success value if this instance represents a success.
51
51
@inlinable
52
- @_preInverseGenerics
53
- public func map< NewSuccess: ~ Copyable> (
52
+ public func map< NewSuccess> (
54
53
_ transform: ( Success ) -> NewSuccess
55
54
) -> Result < NewSuccess , Failure > {
56
55
switch self {
@@ -175,8 +174,7 @@ extension Result {
175
174
/// - Returns: A `Result` instance, either from the closure or the previous
176
175
/// `.failure`.
177
176
@inlinable
178
- @_preInverseGenerics
179
- public func flatMap< NewSuccess: ~ Copyable> (
177
+ public func flatMap< NewSuccess> (
180
178
_ transform: ( Success ) -> Result < NewSuccess , Failure >
181
179
) -> Result < NewSuccess , Failure > {
182
180
switch self {
You can’t perform that action at this time.
0 commit comments