refactor: use {t} format specifiers

This commit is contained in:
CJ van den Berg 2025-12-04 14:30:30 +01:00
parent 76f23b0824
commit 090d27d890
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
8 changed files with 19 additions and 21 deletions

View file

@ -50,9 +50,7 @@ pub fn FullPanic(comptime panicFn: fn ([]const u8, ?usize) noreturn) type {
}
pub fn inactiveUnionField(active: anytype, accessed: @TypeOf(active)) noreturn {
@branchHint(.cold);
std.debug.panicExtra(@returnAddress(), "access of union field '{s}' while field '{s}' is active", .{
@tagName(accessed), @tagName(active),
});
std.debug.panicExtra(@returnAddress(), "access of union field '{t}' while field '{t}' is active", .{ accessed, active });
}
pub fn sliceCastLenRemainder(src_len: usize) noreturn {
@branchHint(.cold);