From 520ff54f72cbdcd7d06630fa5c104076b700594b Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Wed, 9 Oct 2024 10:23:41 -0700 Subject: [PATCH] compiler help --- Sources/swift-parsing-benchmark/JSON.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/swift-parsing-benchmark/JSON.swift b/Sources/swift-parsing-benchmark/JSON.swift index 18d4921d67..8227de22cb 100644 --- a/Sources/swift-parsing-benchmark/JSON.swift +++ b/Sources/swift-parsing-benchmark/JSON.swift @@ -70,7 +70,8 @@ let jsonSuite = BenchmarkSuite(name: "JSON") { suite in struct JSONObject: ParserPrinter { var body: some ParserPrinter { "{".utf8 - Many(into: [String: JSONValue.Output]()) { object, pair in + Many(into: [String: JSONValue.Output]()) { + (object: inout [String: JSONValue.Output], pair: (String, JSONValue.Output)) in let (name, value) = pair object[name] = value } decumulator: { object in