authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-13 12:52:47 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-13 12:52:47 -07:00
log6e4e3983cea4fe7f705ce6c6606832fca409a4c7
tree6e4bb06254cf2c853c6ff7b79be36a4e570849ec
parent5547dc6ac414e0c7ff8fc1d7421cf0543e7286fa
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

remove a bunch of usingnamespace


1 files changed, 9 insertions(+), 3 deletions(-)

time.zig+9-3
......@@ -453,7 +453,9 @@ pub const format = struct {
453453pub const TimeZone = enum {
454454 UTC,
455455
456 usingnamespace extras.TagNameJsonStringifyMixin(@This());
456 pub fn jsonStringify(self: @This(), json_stream: anytype) !void {
457 try json_stream.write(@tagName(self));
458 }
457459};
458460
459461pub const WeekDay = enum {
......@@ -477,14 +479,18 @@ pub const WeekDay = enum {
477479 };
478480 }
479481
480 usingnamespace extras.TagNameJsonStringifyMixin(@This());
482 pub fn jsonStringify(self: @This(), json_stream: anytype) !void {
483 try json_stream.write(@tagName(self));
484 }
481485};
482486
483487pub const Era = enum {
484488 // BC,
485489 AD,
486490
487 usingnamespace extras.TagNameJsonStringifyMixin(@This());
491 pub fn jsonStringify(self: @This(), json_stream: anytype) !void {
492 try json_stream.write(@tagName(self));
493 }
488494};
489495
490496pub fn isLeapYear(year: u16) bool {