From 8401a1944fff76034468cbc9daf74f19aabfe8fb Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 21 Jun 2023 18:28:18 -0700 Subject: [PATCH] dont use zig-range anymore --- src/lib.zig | 5 ++--- zig.mod | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index d2b15668f4da312ff5b835eed4bbc321c61513b7..6efea24aff7d020a3b69853e620941ebb209b380 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -9,7 +9,6 @@ const std = @import("std"); const string = []const u8; -const range = @import("range").range; const htmlentities = @import("htmlentities"); const root = @import("root"); @@ -47,7 +46,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V } } else false; - if (opts.flag1) for (range(opts.indent)) |_| try writer.writeAll(" "); + if (opts.flag1) for (0..opts.indent) |_| try writer.writeAll(" "); try writer.writeAll("<"); try writer.writeAll(v.name); @@ -79,7 +78,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V .flag1 = !hastext, }); } - if (!hastext) for (range(opts.indent)) |_| try writer.writeAll(" "); + if (!hastext) for (0..opts.indent) |_| try writer.writeAll(" "); try writer.print("", .{v.name}); if (opts.flag1) try writer.writeAll("\n"); } diff --git a/zig.mod b/zig.mod index db3ca76e716f1a99ea23c5edf69c3ff41fa73d5b..48a6dd3c5631bc89e49a995ad2dca6ec14edfe98 100644 --- a/zig.mod +++ b/zig.mod @@ -4,5 +4,4 @@ main: src/lib.zig license: AGPL-3.0 description: An HTML preprocessor with a builtin template engine. dependencies: - - src: git https://github.com/nektro/zig-range - src: git https://github.com/kivikakk/htmlentities.zig -- 2.54.0