Skip to content

Commit 7f0f6bb

Browse files
brettkooncedan-zheng
authored andcommitted
rm minor warning
1 parent 5b94396 commit 7f0f6bb

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)