Skip to content

Commit 3fac7d8

Browse files
authored
Merge pull request #575 from milseman/noescape_by_default
[noescape by default] Add explicit @escaping as needed
2 parents 6bd2fd7 + d398cf6 commit 3fac7d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/Commands/SwiftBuildTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private enum BuildToolFlag: Argument {
6868
case ignoreDependencies
6969
case verbose(Int)
7070

71-
init?(argument: String, pop: () -> String?) throws {
71+
init?(argument: String, pop: @escaping () -> String?) throws {
7272
func forcePop() throws -> String {
7373
guard let value = pop() else { throw OptionParserError.expectedAssociatedValue(argument) }
7474
return value

Sources/Commands/SwiftPackageTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private enum PackageToolFlag: Argument {
8989
case ignoreDependencies
9090
case verbose(Int)
9191

92-
init?(argument: String, pop: () -> String?) throws {
92+
init?(argument: String, pop: @escaping () -> String?) throws {
9393

9494
func forcePop() throws -> String {
9595
guard let value = pop() else { throw OptionParserError.expectedAssociatedValue(argument) }

Sources/Commands/SwiftTestTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private enum TestToolFlag: Argument {
9191
case ignoreDependencies
9292
case verbose(Int)
9393

94-
init?(argument: String, pop: () -> String?) throws {
94+
init?(argument: String, pop: @escaping () -> String?) throws {
9595
func forcePop() throws -> String {
9696
guard let value = pop() else { throw OptionParserError.expectedAssociatedValue(argument) }
9797
return value

0 commit comments

Comments
 (0)