Skip to content

Commit d6a16b6

Browse files
Fix benchmarks
1 parent 6bdd1a7 commit d6a16b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmarks/json/person.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ rfl::Result<std::vector<Person>> yyjson_to_children(yyjson_val *_val) {
157157
while ((val = yyjson_arr_iter_next(&iter))) {
158158
auto r = yyjson_to_person(val);
159159
if (!r) {
160-
return error(r.error());
160+
return rfl::error(r.error());
161161
}
162162
children.emplace_back(std::move(*r));
163163
}
@@ -220,7 +220,7 @@ rfl::Result<Person> yyjson_to_person(yyjson_val *_val) {
220220
for (const auto &err : errors) {
221221
std::cout << err.what() << std::endl;
222222
}
223-
return error(errors[0]);
223+
return rfl::error(errors[0]);
224224
}
225225
return person;
226226
}

0 commit comments

Comments
 (0)