From 97b810a52abf19ae34f45ffecc188c794347f3f9 Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Mon, 25 Sep 2023 16:59:55 -0700 Subject: [PATCH] Remove `mutating` from extenions on `SingleValueDecodingContainer` --- Sources/PotentCodables/ValueTransformer.swift | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Sources/PotentCodables/ValueTransformer.swift b/Sources/PotentCodables/ValueTransformer.swift index b96776ed6..4c8d7df9b 100644 --- a/Sources/PotentCodables/ValueTransformer.swift +++ b/Sources/PotentCodables/ValueTransformer.swift @@ -791,67 +791,67 @@ public extension UnkeyedDecodingContainer { public extension SingleValueDecodingContainer { - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == Bool { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == String { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == Int8 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == Int16 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == Int32 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == Int64 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == UInt8 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == UInt16 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == UInt32 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == UInt64 { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == Float { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source == Double { return try transformer.decode(decode(Transformer.Source.self)) } - mutating func decode(using transformer: Transformer) throws -> Transformer + func decode(using transformer: Transformer) throws -> Transformer .Target where Transformer.Source: Decodable { return try transformer.decode(decode(Transformer.Source.self)) }