Skip to content

Commit

Permalink
Merge pull request #61 from outfoxx/fix/svdc-mutating
Browse files Browse the repository at this point in the history
Remove `mutating` from extenions on `SingleValueDecodingContainer`
  • Loading branch information
kdubb authored Sep 26, 2023
2 parents de4bc28 + 97b810a commit 583f1b0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Sources/PotentCodables/ValueTransformer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -791,67 +791,67 @@ public extension UnkeyedDecodingContainer {

public extension SingleValueDecodingContainer {

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == Bool {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == String {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == Int8 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == Int16 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == Int32 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == Int64 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == UInt8 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == UInt16 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == UInt32 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == UInt64 {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == Float {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source == Double {
return try transformer.decode(decode(Transformer.Source.self))
}

mutating func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
func decode<Transformer: ValueDecodingTransformer>(using transformer: Transformer) throws -> Transformer
.Target where Transformer.Source: Decodable {
return try transformer.decode(decode(Transformer.Source.self))
}
Expand Down

0 comments on commit 583f1b0

Please sign in to comment.