Skip to content

Commit

Permalink
Merge pull request #23 from danhalliday/master
Browse files Browse the repository at this point in the history
Add Sendable conformance to Version
  • Loading branch information
mxcl authored Sep 16, 2024
2 parents 412af30 + ca943a9 commit 303a0f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
A struct representing a “semver” version, that is: a Semantic Version.
- SeeAlso: https://semver.org
*/

public struct Version {
/// The major version.
public let major: Int
Expand Down Expand Up @@ -193,3 +194,7 @@ public extension Version {
buildMetadataIdentifiers = []
}
}

#if swift(>=5.5)
extension Version: Sendable {}
#endif

0 comments on commit 303a0f9

Please sign in to comment.