zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 53fc991abde044054991d3fed405cb6733572941 (tree)
parent c46e5eb3e1a26a0fb86a1603243497510f723f9b
Author: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Date:   Sun,  4 Jun 2023 23:56:47 +0600

std.fmt.formatValue: remove `B` and `Bi` specifiers (deprecated in 0.8)

Followup to 72664df4911f5d5bddead48acde6275f1d5f2a5e.
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>

Diffstat:
Mlib/std/fmt.zig | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig @@ -727,12 +727,6 @@ fn formatValue( options: FormatOptions, writer: anytype, ) !void { - if (comptime std.mem.eql(u8, fmt, "B")) { - @compileError("specifier 'B' has been deprecated, wrap your argument in std.fmt.fmtIntSizeDec instead"); - } else if (comptime std.mem.eql(u8, fmt, "Bi")) { - @compileError("specifier 'Bi' has been deprecated, wrap your argument in std.fmt.fmtIntSizeBin instead"); - } - const T = @TypeOf(value); switch (@typeInfo(T)) { .Float, .ComptimeFloat => return formatFloatValue(value, fmt, options, writer),