Skip to content

Commit

Permalink
Remove the existential any marker before Decoder since it's a mor…
Browse files Browse the repository at this point in the history
…e recent Swift token
  • Loading branch information
Joannis committed Mar 16, 2024
1 parent 911f59d commit 3381137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/swift/Sources/VexillaClient/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public enum Feature: Decodable, BaseFeature {
case selective(SelectiveFeature)
case value(ValueFeature)

public init(from decoder: any Decoder) throws {
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
let featureType = try container.decode(FeatureType.self, forKey: .featureType)

Expand Down Expand Up @@ -196,7 +196,7 @@ public struct SelectiveFeature: BaseFeature {
case float([Float64])
}

public init(from decoder: any Decoder) throws {
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
name = try container.decode(String.self, forKey: .name)
featureId = try container.decode(String.self, forKey: .featureId)
Expand Down Expand Up @@ -240,7 +240,7 @@ public struct ValueFeature: BaseFeature {
case float(Float64)
}

public init(from decoder: any Decoder) throws {
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
name = try container.decode(String.self, forKey: .name)
featureId = try container.decode(String.self, forKey: .featureId)
Expand Down

0 comments on commit 3381137

Please sign in to comment.