Skip to content

Commit 67da202

Browse files
committed
[cxx-interop] NFC: Fix a warning
This fixes a build warning: ``` swift/stdlib/public/Cxx/CxxDictionary.swift:168:9: warning: variable 'iter' was never mutated; consider changing to 'let' constant ```
1 parent 9de7e25 commit 67da202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Cxx/CxxDictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ extension CxxDictionary {
165165
@inlinable
166166
@discardableResult
167167
public mutating func removeValue(forKey key: Key) -> Value? {
168-
var iter = self.__findMutatingUnsafe(key)
168+
let iter = self.__findMutatingUnsafe(key)
169169
guard iter != self.__endMutatingUnsafe() else { return nil }
170170

171171
let value = iter.pointee.second

0 commit comments

Comments
 (0)