Utilities/w: Work around Clang 18 bug with templated lambda + Variant

This was missed in 6f972c1 since this file is not compiled as a part of 
a Lagom build.
This commit is contained in:
Dan Klishch 2024-04-13 03:09:30 -04:00 committed by Andrew Kaster
parent 7296b0fa43
commit 50911e6f96

View file

@ -68,7 +68,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
if (!hide_header)
outln("\033[1m{:10} {:12} {:16} {:6} {}\033[0m", "USER", "TTY", "LOGIN@", "IDLE", "WHAT");
TRY(json.as_object().try_for_each_member([&](auto& tty, auto& value) -> ErrorOr<void> {
TRY(json.as_object().try_for_each_member([&](ByteString const& tty, auto& value) -> ErrorOr<void> {
const JsonObject& entry = value.as_object();
auto uid = entry.get_u32("uid"sv).value_or(0);
[[maybe_unused]] auto pid = entry.get_i32("pid"sv).value_or(0);