Skip to content

Commit

Permalink
Fixed Swift 6 warning now that it's been released
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Oct 8, 2024
1 parent b55be3e commit b06dc3d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions Package@swift-6.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ let package = Package(
name: "AsyncSequenceReader",
dependencies: [],
swiftSettings: [
.swiftLanguageVersion(.v6),
.swiftLanguageMode(.v6),
]
),
.testTarget(
name: "AsyncSequenceReaderTests",
dependencies: ["AsyncSequenceReader"]),
dependencies: ["AsyncSequenceReader"],
swiftSettings: [
.swiftLanguageMode(.v6),
]
),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncBufferedIteratorTests: XCTestCase {
final class AsyncBufferedIteratorTests: XCTestCase, @unchecked Sendable {
func testBufferIteratorFromStream() async throws {
let testStream = AsyncStream<Int> { continuation in
for value in 0..<10 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncIteratorMapSequenceTests: XCTestCase {
final class AsyncIteratorMapSequenceTests: XCTestCase, @unchecked Sendable {
func testIteratorMapFromStream() async throws {
let testStream = AsyncStream<String> { continuation in
let data = ["2", "Hello,", "World!", "4", "My", "name", "is", "Dimitri.", "0", "1", "Bye!"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncReadUpToCountSequenceTests: XCTestCase {
final class AsyncReadUpToCountSequenceTests: XCTestCase, @unchecked Sendable {
func testIteratorMapFromStream() async throws {
struct LocalError: Error {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncReadUpToElementsSequenceTests: XCTestCase {
final class AsyncReadUpToElementsSequenceTests: XCTestCase, @unchecked Sendable {
func testIteratorMapUpToIncludingSequence() async throws {
struct LocalError: Error {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import AsyncSequenceReader

final class AsyncSequenceReaderTests: XCTestCase {
final class AsyncSequenceReaderTests: XCTestCase, @unchecked Sendable {
// MARK: - Test Manual Iteration

func testReadSequenceFromStream() async throws {
Expand Down

0 comments on commit b06dc3d

Please sign in to comment.