Merge branch 'perf/msgpack-scalar-runs' into perf/ubjson-typed-arrays

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann committed 2026-11-01 03:19:33 +01:00
commit dbf7756f7b
1 file changed
+4 -2
+4 -2
View File
@@ -2275,7 +2275,8 @@ TEST_CASE("MessagePack arrays of scalars from contiguous and non-contiguous inpu
std::string bytewise_error; std::string bytewise_error;
try try
{ {
static_cast<void>(json::from_msgpack(contiguous)); json _;
_ = json::from_msgpack(contiguous);
} }
catch (const json::parse_error& e) catch (const json::parse_error& e)
{ {
@@ -2283,7 +2284,8 @@ TEST_CASE("MessagePack arrays of scalars from contiguous and non-contiguous inpu
} }
try try
{ {
static_cast<void>(json::from_msgpack(bytewise.begin(), bytewise.end())); json _;
_ = json::from_msgpack(bytewise.begin(), bytewise.end());
} }
catch (const json::parse_error& e) catch (const json::parse_error& e)
{ {