Skip to content

Commit 6eefad2

Browse files
committed
Fix Swift compile
1 parent ab94c30 commit 6eefad2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Performance/generators/swift.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,20 @@ extension Harness {
106106
populateFields(of: &message)
107107
}
108108
109-
message = measureSubtask("Populate fields with with") {
109+
message = measureSubtask("Populate (with)") {
110110
return populateFieldsWithWith()
111111
}
112112
113113
// Exercise binary serialization.
114-
let data = try measureSubtask("Encode binary") {
115-
return try message.serializedBytes()
114+
let data = try measureSubtask("Encode binary") { () -> Data in
115+
try message.serializedBytes()
116116
}
117117
let message2 = try measureSubtask("Decode binary") {
118118
return try PerfMessage(serializedData: data)
119119
}
120120
121121
// Exercise JSON serialization.
122-
let json = try measureSubtask("Encode JSON") {
122+
let json = try measureSubtask("Encode JSON") { () -> Data in
123123
return try message.jsonUTF8Bytes()
124124
}
125125
_ = try measureSubtask("Decode JSON") {

0 commit comments

Comments
 (0)