From 4f53b846bc19a47752cad946b842972abfc8e7aa Mon Sep 17 00:00:00 2001 From: Uzair Aftab Date: Thu, 9 Jul 2026 21:41:42 +0200 Subject: [PATCH] renderer: move State declaration to top of file --- src/renderer/State.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/State.zig b/src/renderer/State.zig index 727fece4c..8693458f1 100644 --- a/src/renderer/State.zig +++ b/src/renderer/State.zig @@ -1,5 +1,7 @@ //! This is the render state that is given to a renderer. +const State = @This(); + const std = @import("std"); const assert = std.debug.assert; const Allocator = std.mem.Allocator; @@ -8,8 +10,6 @@ const terminalpkg = @import("../terminal/main.zig"); const inputpkg = @import("../input.zig"); const renderer = @import("../renderer.zig"); -const State = @This(); - /// The mutex that must be held while reading any of the data in the /// members of this state. Note that the state itself is NOT protected /// by the mutex and is NOT thread-safe, only the members values of the