Skip to content

Commit 7c51ed5

Browse files
authored
Merge pull request swiftlang#30922 from brettkoonce/rm-benchmark-warning
[benchmark] rm minor warning
2 parents 4560817 + 7f0f6bb commit 7c51ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/single-source/DataBenchmarks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ func withUnsafeMutableBytes(_ N: Int, data: Data) {
416416
@inline(never)
417417
func copyBytes(_ N: Int, data: Data) {
418418
let amount = data.count
419-
var buffer = UnsafeMutablePointer<UInt8>.allocate(capacity: amount)
419+
let buffer = UnsafeMutablePointer<UInt8>.allocate(capacity: amount)
420420
defer { buffer.deallocate() }
421421
for _ in 1...N {
422422
data.copyBytes(to: buffer, from: 0..<amount)

0 commit comments

Comments
 (0)