Skip to content

Commit 68bd603

Browse files
committed
Add compatibility to Swift 6.0 mode / concurrency
1 parent 03bc756 commit 68bd603

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DomainParser/DomainParser/DomainParserProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import Foundation
1010

11-
public protocol DomainParserProtocol {
11+
public protocol DomainParserProtocol: Sendable {
1212
func parse(host: String) -> ParsedHost?
1313
}
1414

DomainParser/DomainParser/ParsedHost.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import Foundation
1010

11-
public struct ParsedHost {
11+
public struct ParsedHost: Sendable {
1212

1313
/// E.g. "com", "co.uk"
1414
public let publicSuffix: String

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:6.0
22

33
import PackageDescription
44

0 commit comments

Comments
 (0)