mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
axtree: use a simpler union switch
This commit is contained in:
@@ -141,9 +141,7 @@ pub const Writer = struct {
|
||||
if (value.value) |v| {
|
||||
try w.objectField("value");
|
||||
switch (v) {
|
||||
.uint => try w.write(v.uint),
|
||||
.string => try w.write(v.string),
|
||||
.boolean => try w.write(v.boolean),
|
||||
inline else => |vv| try w.write(vv),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user