fastlane/swift/OptionalConfigValue.swift in fastlane-2.183.2 vs fastlane/swift/OptionalConfigValue.swift in fastlane-2.184.0

- old
+ new

@@ -21,42 +21,10 @@ } return nil } } -extension Optional: ExpressibleByIntegerLiteral where Wrapped: ExpressibleByIntegerLiteral { - public typealias IntegerLiteralType = Wrapped.IntegerLiteralType - - public init(integerLiteral value: Wrapped.IntegerLiteralType) { - self = .some(.init(integerLiteral: value)) - } -} - -extension Optional: ExpressibleByUnicodeScalarLiteral where Wrapped: ExpressibleByUnicodeScalarLiteral { - public typealias UnicodeScalarLiteralType = Wrapped.UnicodeScalarLiteralType - - public init(unicodeScalarLiteral value: Wrapped.UnicodeScalarLiteralType) { - self = .some(.init(unicodeScalarLiteral: value)) - } -} - -extension Optional: ExpressibleByExtendedGraphemeClusterLiteral where Wrapped: ExpressibleByStringLiteral { - public typealias ExtendedGraphemeClusterLiteralType = Wrapped.ExtendedGraphemeClusterLiteralType - - public init(extendedGraphemeClusterLiteral value: Wrapped.ExtendedGraphemeClusterLiteralType) { - self = .some(.init(extendedGraphemeClusterLiteral: value)) - } -} - -extension Optional: ExpressibleByStringLiteral where Wrapped: ExpressibleByStringLiteral { - public typealias StringLiteralType = Wrapped.StringLiteralType - - public init(stringLiteral value: Wrapped.StringLiteralType) { - self = .some(.init(stringLiteral: value)) - } -} - extension OptionalConfigValue: ExpressibleByUnicodeScalarLiteral where T == String? { public typealias UnicodeScalarLiteralType = String public init(unicodeScalarLiteral value: UnicodeScalarLiteralType) { self = .userDefined(value) @@ -76,9 +44,11 @@ public init(stringLiteral value: StringLiteralType) { self = .userDefined(value) } } + +extension OptionalConfigValue: ExpressibleByStringInterpolation where T == String? {} extension OptionalConfigValue: ExpressibleByNilLiteral { public init(nilLiteral _: ()) { self = .nil }