Skip to content

Commit 5ee9bfd

Browse files
committed
NFC: Resolve "was never mutated" warnings in ASTGen.
1 parent 8e00de0 commit 5ee9bfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ASTGen/Sources/ASTGen/Macros.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func makeExpansionOutputResult(
393393
expandedSource: String?,
394394
outputPointer: UnsafeMutablePointer<BridgedStringRef>
395395
) -> Int {
396-
guard var expandedSource = expandedSource else {
396+
guard let expandedSource = expandedSource else {
397397
outputPointer.pointee = BridgedStringRef()
398398
return -1
399399
}

lib/ASTGen/Sources/ASTGen/PluginHost.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func swift_ASTGen_pluginServerLoadLibraryPlugin(
8181
assert(diagnostics.isEmpty)
8282
return true
8383
}
84-
var errorMsgs = diagnostics.map({ $0.message }).joined(separator: ", ");
84+
let errorMsgs = diagnostics.map({ $0.message }).joined(separator: ", ");
8585
errorOut?.pointee = allocateBridgedString(errorMsgs);
8686
return false
8787
} catch {

0 commit comments

Comments
 (0)