From c624df0fa6ec796d40e125b817b938b61224e8fd Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 31 May 2026 23:46:54 -0700 Subject: [PATCH] update to zig 0.15.2 --- README.md | 2 +- base32.zig | 2 +- ulid.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a26f8c0b106c1d0be9923e87724944c8b324cf3..0ebe99401a0509c38c430e747be5d51270f298f4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![loc](https://sloc.xyz/github/nektro/zig-ulid) [![license](https://img.shields.io/github/license/nektro/zig-ulid.svg)](https://github.com/nektro/zig-ulid/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) A binary implementation of ULID in Zig. diff --git a/base32.zig b/base32.zig index eb6d05d60d798df49c774002f97a09b0b9533d1b..3a99b59fea885431cd4b4df72396d0f0c021ce8f 100644 --- a/base32.zig +++ b/base32.zig @@ -6,7 +6,7 @@ const string = []const u8; const alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; pub fn decode(alloc: std.mem.Allocator, input: string) ![]const u5 { - var list = std.ArrayList(u5).init(alloc); + var list = std.array_list.Managed(u5).init(alloc); errdefer list.deinit(); for (input) |c| { diff --git a/ulid.zig b/ulid.zig index 88bcc4e6bd582b5ec70794403f1cf50632d62247..0a1cdd65d0383112aad4677964dc8c328b29c107 100644 --- a/ulid.zig +++ b/ulid.zig @@ -50,7 +50,7 @@ pub const ULID = struct { } pub fn toString(self: ULID, alloc: std.mem.Allocator) !BaseType { - var res = try std.ArrayList(u8).initCapacity(alloc, 26); + var res = try std.array_list.Managed(u8).initCapacity(alloc, 26); defer res.deinit(); try res.appendSlice(&self.bytes()); return res.toOwnedSlice(); -- 2.54.0