Rename all ArrayListUnmanaged -> ArrayList

ArrayListAlignedUnmanaged has been deprecated for a while, and I occasionally
replace them, but doing one complete pass gets it done once and for all.
This commit is contained in:
Karl Seguin
2026-02-05 11:49:15 +08:00
parent 7746d9968d
commit 2eab4b84c9
20 changed files with 39 additions and 40 deletions

View File

@@ -123,7 +123,7 @@ pub const Search = struct {
search_id: u16 = 0,
registry: *Registry,
arena: std.heap.ArenaAllocator,
searches: std.ArrayListUnmanaged(Search) = .{},
searches: std.ArrayList(Search) = .{},
pub fn init(allocator: Allocator, registry: *Registry) List {
return .{

View File

@@ -120,7 +120,7 @@ fn insertText(cmd: anytype) !void {
fn clickNavigate(cmd: anytype, uri: std.Uri) !void {
const bc = cmd.browser_context.?;
var url_buf: std.ArrayListUnmanaged(u8) = .{};
var url_buf: std.ArrayList(u8) = .{};
try uri.writeToStream(.{
.scheme = true,
.authentication = true,

View File

@@ -178,7 +178,7 @@ fn getCookies(cmd: anytype) !void {
const page_url = if (bc.session.page) |page| page.url else null;
const param_urls = params.urls orelse &[_][:0]const u8{page_url orelse return error.InvalidParams};
var urls = try std.ArrayListUnmanaged(CdpStorage.PreparedUri).initCapacity(cmd.arena, param_urls.len);
var urls = try std.ArrayList(CdpStorage.PreparedUri).initCapacity(cmd.arena, param_urls.len);
for (param_urls) |url| {
urls.appendAssumeCapacity(.{
.host = try Cookie.parseDomain(cmd.arena, url, null),

View File

@@ -38,8 +38,8 @@ pub const newString = base.newString;
const Client = struct {
allocator: Allocator,
send_arena: ArenaAllocator,
sent: std.ArrayListUnmanaged(json.Value) = .{},
serialized: std.ArrayListUnmanaged([]const u8) = .{},
sent: std.ArrayList(json.Value) = .{},
serialized: std.ArrayList([]const u8) = .{},
fn init(alloc: Allocator) Client {
return .{
@@ -58,7 +58,7 @@ const Client = struct {
try self.sent.append(self.allocator, value);
}
pub fn sendJSONRaw(self: *Client, buf: std.ArrayListUnmanaged(u8)) !void {
pub fn sendJSONRaw(self: *Client, buf: std.ArrayList(u8)) !void {
const value = try json.parseFromSliceLeaky(json.Value, self.allocator, buf.items, .{});
try self.sent.append(self.allocator, value);
}