From c78d16aeb76dc8920c9b3dafb1aae6ceef4f9646 Mon Sep 17 00:00:00 2001 From: owl Date: Tue, 21 Nov 2023 20:01:58 +0100 Subject: [PATCH] fix `var`nings --- build.zig.zon | 4 ++-- src/cat.zig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 3c1cd3d..bbe6143 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -14,8 +14,8 @@ .hash = "122025a06e25e9e9f5b7a5d866719f0b6bfa3f007081a7cbef2983e0e5cb7b3fd60d", }, .ziglyph = .{ - .url = "https://codeberg.org/dude_the_builder/ziglyph/archive/v0.11.2.tar.gz", - .hash = "1220c45655c6f107ca129a558ace8fb3c57afcd7290694c8c4a2d74df40f8c9a8937", + .url = "https://codeberg.org/dude_the_builder/ziglyph/archive/ef6a97e3e6.tar.gz", + .hash = "1220847f934ea57e90ffb4d447a43e37ff4dce2aab23c84513dfff591376350ffd31", }, }, } diff --git a/src/cat.zig b/src/cat.zig index e847a54..26c22e6 100644 --- a/src/cat.zig +++ b/src/cat.zig @@ -136,7 +136,7 @@ fn isNewLine(cp: u21) bool { const testing = std.testing; fn birthTestCat(writer: anytype) Cat(@TypeOf(writer)) { - var cat = Cat(@TypeOf(writer)){ + const cat = Cat(@TypeOf(writer)){ .writer = writer, .pos = .{ .x = 0, .y = 0, .mod = 30 }, .max_width = 8, @@ -181,7 +181,7 @@ test "grapheme wrap" { }) |pos| { var fbsi = std.io.fixedBufferStream(in_buf); var fbso = std.io.fixedBufferStream(&test_out_buf); - var fbsow = fbso.writer(); + const fbsow = fbso.writer(); var cat = birthTestCat(fbsow); cat.max_width = pos.w; -- 2.45.2