Skip to content

Commit 7398252

Browse files
committed
Mutex should be non copyable
1 parent c7c4773 commit 7398252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Mutex.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// @available(tvOS, deprecated: 18.0, message: "use Mutex from Synchronization module included with Swift 6")
3737
// @available(watchOS, deprecated: 11.0, message: "use Mutex from Synchronization module included with Swift 6")
3838
// @available(visionOS, deprecated: 2.0, message: "use Mutex from Synchronization module included with Swift 6")
39-
public struct Mutex<Value>: Sendable {
39+
public struct Mutex<Value>: Sendable, ~Copyable {
4040
let lock: AllocatedLock<Value> // Compatible with OSAllocatedUnfairLock iOS 16+
4141
}
4242

0 commit comments

Comments
 (0)