Fixed some issues | Improved some

This commit is contained in:
abux 2026-08-09 22:42:32 +01:00
parent cf41b73241
commit f4d9d42e8b
2 changed files with 3 additions and 3 deletions

View file

@ -309,7 +309,7 @@ fn log(
// --- WRITE --- // --- WRITE ---
const w = &stderr.file_writer.interface; const w = &stderr.file_writer.interface;
w.writeAll(level.color()) catch return; w.writeAll(level.color()) catch return;
w.print(ansi.bold ++ "[{s:<5}]" ++ ansi.reset ++ " ", .{level.label()}) catch return; w.print(ansi.bold ++ "[{s}]" ++ ansi.reset ++ " ", .{level.label()}) catch return;
// --- CHECK LOCATION --- // --- CHECK LOCATION ---
if (config.source_loc) { if (config.source_loc) {
@ -321,5 +321,5 @@ fn log(
} }
// --- OUTPUT --- // --- OUTPUT ---
w.print(fmt ++ "\n", args) catch return; w.print(fmt, args) catch return;
} }

View file

@ -148,7 +148,7 @@ pub fn ResourceMap(
pub fn put( pub fn put(
self: *Self, self: *Self,
value: V, value: V,
) error{OutOfMemory}!Handle(H) { ) error{OutOfMemory}!Handle(V) {
// --- REUSE A FREED SLOT --- // --- REUSE A FREED SLOT ---
if (self.free_list.pop()) |idx| { if (self.free_list.pop()) |idx| {
const gen = self.mint(); const gen = self.mint();