diff --git a/Sources/SemanticVersion/SemanticVersion+Codable.swift b/Sources/SemanticVersion/SemanticVersion+Codable.swift index 6d7d23c..8b106ae 100644 --- a/Sources/SemanticVersion/SemanticVersion+Codable.swift +++ b/Sources/SemanticVersion/SemanticVersion+Codable.swift @@ -38,7 +38,7 @@ extension JSONDecoder { } } -private extension [CodingUserInfoKey: Any] { +private extension Dictionary where Key == CodingUserInfoKey, Value == Any { var semanticDecodingStrategy: SemanticVersionStrategy { get { (self[.semanticVersionStrategy] as? SemanticVersionStrategy) ?? .defaultCodable