Skip to content

Commit 7af2091

Browse files
conform Version to LosslessStringConvertible
It already satisfies the requirement (`init?(_ versionString: String)`).
1 parent d12a562 commit 7af2091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageDescription/Version+StringLiteralConvertible.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extension Version: ExpressibleByStringLiteral {
4444
}
4545
}
4646

47-
extension Version {
47+
extension Version: LosslessStringConvertible {
4848
/// Initializes a version struct with the provided version string.
4949
/// - Parameter version: A version string to use for creating a new version struct.
5050
public init?(_ versionString: String) {

0 commit comments

Comments
 (0)