From 7df3f9c3b2aac7b10ff825d5f162d1d010f6d8db Mon Sep 17 00:00:00 2001 From: RadsammyT Date: Wed, 17 Jun 2026 14:17:01 -0400 Subject: [PATCH] review pt 3 --- src/animations/Lua.zig | 8 ++++---- src/main.zig | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/animations/Lua.zig b/src/animations/Lua.zig index cfcfb47..309963e 100644 --- a/src/animations/Lua.zig +++ b/src/animations/Lua.zig @@ -29,7 +29,7 @@ info_line: *InfoLine, fg: u32, bg: u32, -lang: *Lang, +lang: Lang, lua_error: bool = false, lua_error_logged: bool = false, @@ -46,7 +46,7 @@ pub fn init( info_line: *InfoLine, fg: u32, bg: u32, - lang: *Lang, + lang: Lang, ) !Lua { var self: Lua = .{ .lua = try zlua.Lua.init(alloc), @@ -137,10 +137,10 @@ fn draw(self: *Lua) void { self.lua_str = std.mem.concatWithSentinel( self.allocator, u8, - &.{ "Cannot call draw(): ", errorStr }, + &.{ "cannot call draw(): ", errorStr }, 0, ) catch unreachable; - self.log.err(self.io, "Lua", "Error (Cannot call draw()): {s}", .{errorStr}) catch unreachable; + self.log.err(self.io, "lua", "error (cannot call draw()): {s}", .{errorStr}) catch unreachable; self.lua_error = true; }; } diff --git a/src/main.zig b/src/main.zig index cf87637..487e54a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1111,7 +1111,7 @@ pub fn main(init: std.process.Init) !void { &state.info_line, state.config.error_fg, state.config.error_bg, - &state.lang, + state.lang, ); animation = lua.widget(); },