rename ansi to formatted

This commit is contained in:
Emil Lerch 2026-01-03 16:11:06 -08:00
parent bd6678da08
commit 52a5bf2543
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ const httpz = @import("httpz");
const WeatherProvider = @import("../weather/Provider.zig");
const Resolver = @import("../location/resolver.zig").Resolver;
const QueryParams = @import("query.zig").QueryParams;
const ansi = @import("../render/ansi.zig");
const formatted = @import("../render/formatted.zig");
const line = @import("../render/line.zig");
const json = @import("../render/json.zig");
const v2 = @import("../render/v2.zig");
@ -167,7 +167,7 @@ fn handleWeatherInternal(
} else {
break :blk try line.render(req_alloc, weather, fmt, use_imperial);
}
} else try ansi.render(req_alloc, weather, .{ .use_imperial = use_imperial });
} else try formatted.render(req_alloc, weather, .{ .use_imperial = use_imperial });
// Add coordinates header using response allocator
const coords_header = try std.fmt.allocPrint(res.arena, "{d:.4},{d:.4}", .{ location.coords.latitude, location.coords.longitude });