From 380507b4adcc888972a5debcc168c589f052cc9c Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 31 May 2026 23:50:03 -0700 Subject: [PATCH] update to zig 0.15.2 --- README.md | 2 +- time.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1772b1e79c35ebe774e438ce086c0c1db2c09dde..f5bfff5d6e0303b972cf138e683b1a0c9e05a8c8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![loc](https://sloc.xyz/github/nektro/zig-time) [![license](https://img.shields.io/github/license/nektro/zig-time.svg)](https://github.com/nektro/zig-time/blob/master/LICENSE) [![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro) -[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/) +[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/) [![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod) Exposes a `DateTime` structure that can be initialized and acted upon using various methods. All public methods return a new structure. diff --git a/time.zig b/time.zig index 1c61d7dcd890f6341f6441845d95c55d3c601656..7cfab48ecc5b12cb9a9eaa53b921eff0f4c6e6e9 100644 --- a/time.zig +++ b/time.zig @@ -358,7 +358,7 @@ pub const DateTime = struct { } pub fn formatAlloc(self: DateTime, alloc: std.mem.Allocator, comptime fmt: string) !string { - var list = std.ArrayList(u8).init(alloc); + var list = std.array_list.Managed(u8).init(alloc); defer list.deinit(); try self.format(fmt, .{}, list.writer()); -- 2.54.0