Skip to content

Commit 5454589

Browse files
committed
Make SQLiteVersion struct sendable stephencelis#1308
1 parent c7b78f2 commit 5454589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SQLite/Core/SQLiteVersion.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public struct SQLiteVersion: Comparable, CustomStringConvertible {
3+
public struct SQLiteVersion: Sendable, Comparable, CustomStringConvertible {
44
public let major: Int
55
public let minor: Int
66
public var point: Int = 0
@@ -17,6 +17,6 @@ public struct SQLiteVersion: Comparable, CustomStringConvertible {
1717
lhs.tuple == rhs.tuple
1818
}
1919

20-
static var zero: SQLiteVersion = .init(major: 0, minor: 0)
20+
static let zero: SQLiteVersion = .init(major: 0, minor: 0)
2121
private var tuple: (Int, Int, Int) { (major, minor, point) }
2222
}

0 commit comments

Comments
 (0)