Reduce warnings for preconcurrency and non mutated vars (#88)

This commit is contained in:
Philippe Hausler authored and GitHub committed 2022-03-17 16:13:57 -07:00
1 parent 3447a342ac
commit e87e9ddd02
4 files changed
+5 -5

No files matched your search

@@ -78,7 +78,7 @@ actor AsyncBufferState<Input: Sendable, Output: Sendable> {
func terminate() {
terminationState = .terminal
var oldPending = pending
let oldPending = pending
pending = []
for continuation in oldPending {
continuation.resume(returning: .success(nil))
+1 -1
View File
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@preconcurrency import XCTest
import AsyncAlgorithms
final class TestBuffer: XCTestCase {
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@preconcurrency import XCTest
import AsyncAlgorithms
final class TestRemoveDuplicates: XCTestCase {
@@ -64,7 +64,7 @@ final class TestRemoveDuplicates: XCTestCase {
throw NSError(domain: NSCocoaErrorDomain, code: -1, userInfo: nil)
}
return $0
} as (Int) throws -> Int)
} as @Sendable (Int) throws -> Int)
do {
for try await item in throwingSequence.removeDuplicates() {
+1 -1
View File
@@ -9,7 +9,7 @@
//
//===----------------------------------------------------------------------===//
import XCTest
@preconcurrency import XCTest
import AsyncAlgorithms
final class TestZip2: XCTestCase {