authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-27 17:49:09 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-27 17:49:09 -07:00
logc50f286c78a4a9704ac3f9fecd7c351e7da89e02
treeba7ba7cc4babe910d1758c69b6be171bb5260f6f
parent4318aeb6e24e89245917e9b011892b944c26bea3
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

fmt: add this guard to help the transition to nio


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

fmt.zig+3
...@@ -424,6 +424,9 @@ fn formatType(value: anytype, comptime fmt: []const u8, options: FormatOptions,...@@ -424,6 +424,9 @@ fn formatType(value: anytype, comptime fmt: []const u8, options: FormatOptions,
424 return formatAddress(value, options, writer);424 return formatAddress(value, options, writer);
425 }425 }
426426
427 if (comptime std.meta.hasMethod(T, "format")) {
428 @compileError("fix this: " ++ @typeName(T));
429 }
427 if (std.meta.hasMethod(T, "nprint")) {430 if (std.meta.hasMethod(T, "nprint")) {
428 return value.nprint(writer);431 return value.nprint(writer);
429 }432 }