mirror of
https://github.com/fairyglade/ly.git
synced 2026-06-22 07:22:00 +00:00
Replace ArrayListUnmanaged with ArrayList
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -6,7 +6,7 @@ const TerminalBuffer = @import("../TerminalBuffer.zig");
|
||||
const Position = @import("../Position.zig");
|
||||
const Widget = @import("../Widget.zig");
|
||||
|
||||
const DynamicString = std.ArrayListUnmanaged(u8);
|
||||
const DynamicString = std.ArrayList(u8);
|
||||
|
||||
const Text = @This();
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ const Position = @import("../Position.zig");
|
||||
pub fn CyclableLabel(comptime ItemType: type, comptime ChangeItemType: type) type {
|
||||
return struct {
|
||||
const Allocator = std.mem.Allocator;
|
||||
const ItemList = std.ArrayListUnmanaged(ItemType);
|
||||
const ItemList = std.ArrayList(ItemType);
|
||||
const DrawItemFn = *const fn (*Self, ItemType, usize, usize, usize) void;
|
||||
const ChangeItemFn = *const fn (ItemType, ?ChangeItemType) void;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ const CyclableLabel = ly_ui.CyclableLabel;
|
||||
const Session = @import("Session.zig");
|
||||
const SavedUsers = @import("../config/SavedUsers.zig");
|
||||
|
||||
const StringList = std.ArrayListUnmanaged([]const u8);
|
||||
const StringList = std.ArrayList([]const u8);
|
||||
pub const User = struct {
|
||||
name: []const u8,
|
||||
session_index: *usize,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const std = @import("std");
|
||||
const Allocator = std.mem.Allocator;
|
||||
const StringList = std.ArrayListUnmanaged([]const u8);
|
||||
const StringList = std.ArrayList([]const u8);
|
||||
const temporary_allocator = std.heap.page_allocator;
|
||||
const builtin = @import("builtin");
|
||||
const build_options = @import("build_options");
|
||||
|
||||
Reference in New Issue
Block a user