mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 11:04:40 +00:00
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:
parent
7296b0fa43
commit
50911e6f96
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue