Skip to content

Commit 995e7e6

Browse files
committed
Specify return type to support Swift 5.5
1 parent 85c2344 commit 995e7e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftDocC/Infrastructure/DocumentationContext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ public class DocumentationContext: DocumentationContextDataProviderDelegate {
19891989
}
19901990

19911991
if globalOptions.count > 1 {
1992-
let extraGlobalOptionsProblems = globalOptions.map { extraOptionsDirective in
1992+
let extraGlobalOptionsProblems = globalOptions.map { extraOptionsDirective -> Problem in
19931993
let diagnostic = Diagnostic(
19941994
source: extraOptionsDirective.originalMarkup.nameLocation?.source,
19951995
severity: .warning,

Sources/SwiftDocC/Semantics/Article/Article.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public final class Article: Semantic, MarkupConvertible, Abstracted, Redirected,
165165
continue
166166
}
167167

168-
let extraOptionsProblems = extraOptions.map { extraOptionsDirective in
168+
let extraOptionsProblems = extraOptions.map { extraOptionsDirective -> Problem in
169169
let diagnostic = Diagnostic(
170170
source: source,
171171
severity: .warning,

0 commit comments

Comments
 (0)