From 150169f1e0cf08d4b76fed81fc205a63177b6e01 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 30 Aug 2025 14:50:33 -0700 Subject: std.fmt: delete deprecated APIs std.fmt.Formatter -> std.fmt.Alt std.fmt.format -> std.Io.Writer.print --- src/InternPool.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/InternPool.zig') diff --git a/src/InternPool.zig b/src/InternPool.zig index fd8515263c..9965497742 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -1904,11 +1904,11 @@ pub const NullTerminatedString = enum(u32) { } } - pub fn fmt(string: NullTerminatedString, ip: *const InternPool) std.fmt.Formatter(FormatData, format) { + pub fn fmt(string: NullTerminatedString, ip: *const InternPool) std.fmt.Alt(FormatData, format) { return .{ .data = .{ .string = string, .ip = ip, .id = false } }; } - pub fn fmtId(string: NullTerminatedString, ip: *const InternPool) std.fmt.Formatter(FormatData, format) { + pub fn fmtId(string: NullTerminatedString, ip: *const InternPool) std.fmt.Alt(FormatData, format) { return .{ .data = .{ .string = string, .ip = ip, .id = true } }; } -- cgit v1.2.3