From 846d1ad58ca935f40fe988ac5b46c90ec93ed4c5 Mon Sep 17 00:00:00 2001 From: Nate Cook Date: Fri, 13 Jan 2023 10:52:28 -0600 Subject: [PATCH] Provide type annotation for multi-line closure (#543) --- .../ArgumentParser/Completions/FishCompletionsGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ArgumentParser/Completions/FishCompletionsGenerator.swift b/Sources/ArgumentParser/Completions/FishCompletionsGenerator.swift index 6a3bb47f1..9a8fa83dd 100644 --- a/Sources/ArgumentParser/Completions/FishCompletionsGenerator.swift +++ b/Sources/ArgumentParser/Completions/FishCompletionsGenerator.swift @@ -37,7 +37,7 @@ extension FishCompletionsGenerator { "\(prefix) \(suggestion)" } - let subcommandCompletions = subcommands.map { subcommand in + let subcommandCompletions: [String] = subcommands.map { subcommand in let escapedAbstract = subcommand.configuration.abstract.fishEscape() let suggestion = "-f -a '\(subcommand._commandName)' -d '\(escapedAbstract)'" return complete(suggestion: suggestion)