zlint clean

This commit is contained in:
Emil Lerch 2025-07-14 16:12:04 -07:00
parent 8a2e691c1f
commit 069c746b58
Signed by: lobo
GPG key ID: A7B62D657EF764F8
5 changed files with 1 additions and 7 deletions

View file

@ -37,7 +37,7 @@ pub fn generateFeed(allocator: Allocator, releases: []const Release) ![]u8 {
); );
// Add current timestamp in proper ISO 8601 format using zeit // Add current timestamp in proper ISO 8601 format using zeit
const now = zeit.instant(.{}) catch zeit.instant(.{ .source = .now }) catch unreachable; const now = zeit.instant(.{}) catch zeit.instant(.{ .source = .now }) catch @panic("Failed to get current time");
const time = now.time(); const time = now.time();
var buf: [64]u8 = undefined; var buf: [64]u8 = undefined;
const updated_str = try time.bufPrint(&buf, .rfc3339); const updated_str = try time.bufPrint(&buf, .rfc3339);

View file

@ -1,6 +1,5 @@
const std = @import("std"); const std = @import("std");
const testing = std.testing; const testing = std.testing;
const ArrayList = std.ArrayList;
const build_options = @import("build_options"); const build_options = @import("build_options");
const atom = @import("atom.zig"); const atom = @import("atom.zig");

View file

@ -10,8 +10,6 @@ const Codeberg = @import("providers/Codeberg.zig");
const SourceHut = @import("providers/SourceHut.zig"); const SourceHut = @import("providers/SourceHut.zig");
const atom = @import("atom.zig"); const atom = @import("atom.zig");
const config = @import("config.zig"); const config = @import("config.zig");
const Config = config.Config;
const SourceHutConfig = config.SourceHutConfig;
const xml_parser = @import("xml_parser.zig"); const xml_parser = @import("xml_parser.zig");
const zeit = @import("zeit"); const zeit = @import("zeit");

View file

@ -4,8 +4,6 @@ const config = @import("config.zig");
const xml_parser = @import("xml_parser.zig"); const xml_parser = @import("xml_parser.zig");
const Release = main.Release; const Release = main.Release;
const Config = config.Config;
const SourceHutConfig = config.SourceHutConfig;
test "Config loading without last_check field" { test "Config loading without last_check field" {
const allocator = std.testing.allocator; const allocator = std.testing.allocator;

View file

@ -1,6 +1,5 @@
const std = @import("std"); const std = @import("std");
const testing = std.testing; const testing = std.testing;
const ArrayList = std.ArrayList;
const xml_parser = @import("xml_parser.zig"); const xml_parser = @import("xml_parser.zig");
const atom = @import("atom.zig"); const atom = @import("atom.zig");