Fixed some issues | Improved some
This commit is contained in:
parent
cf41b73241
commit
f4d9d42e8b
2 changed files with 3 additions and 3 deletions
|
|
@ -309,7 +309,7 @@ fn log(
|
|||
// --- WRITE ---
|
||||
const w = &stderr.file_writer.interface;
|
||||
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 ---
|
||||
if (config.source_loc) {
|
||||
|
|
@ -321,5 +321,5 @@ fn log(
|
|||
}
|
||||
|
||||
// --- OUTPUT ---
|
||||
w.print(fmt ++ "\n", args) catch return;
|
||||
w.print(fmt, args) catch return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ pub fn ResourceMap(
|
|||
pub fn put(
|
||||
self: *Self,
|
||||
value: V,
|
||||
) error{OutOfMemory}!Handle(H) {
|
||||
) error{OutOfMemory}!Handle(V) {
|
||||
// --- REUSE A FREED SLOT ---
|
||||
if (self.free_list.pop()) |idx| {
|
||||
const gen = self.mint();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue