Skip to content

fix: use ArrayListUnmanaged.empty instead of {} initializer#178

Merged
Hejsil merged 1 commit intoHejsil:masterfrom
here-Leslie-Lau:fix/default-arraylist-empty
Mar 13, 2026
Merged

fix: use ArrayListUnmanaged.empty instead of {} initializer#178
Hejsil merged 1 commit intoHejsil:masterfrom
here-Leslie-Lau:fix/default-arraylist-empty

Conversation

@here-Leslie-Lau
Copy link
Contributor

Issues: #177

This is the latest signature of the std.array_list.Aligned function:

pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {

Cause the old way of creating an empty list by directly using = {} is deprecated.

@Hejsil
Copy link
Owner

Hejsil commented Mar 13, 2026

Thanks!

@Hejsil Hejsil merged commit 23fa3eb into Hejsil:master Mar 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants