Skip to content

Commit a0f43bb

Browse files
authored
Mark CommandConfiguration as Sendable (#615)
Lack of this marker protocol conformance causes warnings with strict concurrency checks, such as `Static property 'configuration' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6`
1 parent 6c7ec36 commit a0f43bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//===----------------------------------------------------------------------===//
1111

1212
/// The configuration for a command.
13-
public struct CommandConfiguration {
13+
public struct CommandConfiguration: Sendable {
1414
/// The name of the command to use on the command line.
1515
///
1616
/// If `nil`, the command name is derived by converting the name of

0 commit comments

Comments
 (0)