Skip to content

Commit b2542a3

Browse files
authored
Merge pull request #24127 from Gumichocopengin8/fix-build-warnings
2 parents 2587df2 + 0613cd3 commit b2542a3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

stdlib/private/StdlibCollectionUnittest/CheckCollectionInstance.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public func checkOneLevelOfForwardCollection<
467467
}
468468
}
469469

470-
var allIndices = Array(collection.indices)
470+
let allIndices = Array(collection.indices)
471471

472472
if expectedArray.count >= 2 {
473473
for i in 0..<allIndices.count-1 {
@@ -693,7 +693,7 @@ public func checkOneLevelOfBidirectionalCollection<
693693
}
694694
}
695695

696-
var allIndices = Array(collection.indices)
696+
let allIndices = Array(collection.indices)
697697

698698
if expectedArray.count >= 2 {
699699
for i in 0..<allIndices.count-1 {
@@ -978,7 +978,7 @@ public func checkOneLevelOfRandomAccessCollection<
978978
}
979979
}
980980

981-
var allIndices = Array(collection.indices)
981+
let allIndices = Array(collection.indices)
982982

983983
if expectedArray.count >= 2 {
984984
for i in 0..<allIndices.count-1 {
@@ -1237,7 +1237,7 @@ public func checkOneLevelOfForwardCollection<
12371237
}
12381238
}
12391239

1240-
var allIndices = Array(collection.indices)
1240+
let allIndices = Array(collection.indices)
12411241

12421242
if expectedArray.count >= 2 {
12431243
for i in 0..<allIndices.count-1 {
@@ -1463,7 +1463,7 @@ public func checkOneLevelOfBidirectionalCollection<
14631463
}
14641464
}
14651465

1466-
var allIndices = Array(collection.indices)
1466+
let allIndices = Array(collection.indices)
14671467

14681468
if expectedArray.count >= 2 {
14691469
for i in 0..<allIndices.count-1 {
@@ -1748,7 +1748,7 @@ public func checkOneLevelOfRandomAccessCollection<
17481748
}
17491749
}
17501750

1751-
var allIndices = Array(collection.indices)
1751+
let allIndices = Array(collection.indices)
17521752

17531753
if expectedArray.count >= 2 {
17541754
for i in 0..<allIndices.count-1 {

stdlib/public/Darwin/Foundation/JSONEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ open class JSONDecoder {
11281128
let leadingUnderscoreRange = stringKey.startIndex..<firstNonUnderscore
11291129
let trailingUnderscoreRange = stringKey.index(after: lastNonUnderscore)..<stringKey.endIndex
11301130

1131-
var components = stringKey[keyRange].split(separator: "_")
1131+
let components = stringKey[keyRange].split(separator: "_")
11321132
let joinedString : String
11331133
if components.count == 1 {
11341134
// No underscores in key, leave the word as is - maybe already camel cased

0 commit comments

Comments
 (0)