refactor: use {t} format specifiers
This commit is contained in:
parent
76f23b0824
commit
090d27d890
8 changed files with 19 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue