From 069c746b584532eb79e7e0dc2e61379db2a01d31 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 14 Jul 2025 16:12:04 -0700 Subject: [PATCH] zlint clean --- src/atom.zig | 2 +- src/integration_tests.zig | 1 - src/main.zig | 2 -- src/timestamp_tests.zig | 2 -- src/xml_parser_tests.zig | 1 - 5 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/atom.zig b/src/atom.zig index 2d18d36..f5f33f2 100644 --- a/src/atom.zig +++ b/src/atom.zig @@ -37,7 +37,7 @@ pub fn generateFeed(allocator: Allocator, releases: []const Release) ![]u8 { ); // 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(); var buf: [64]u8 = undefined; const updated_str = try time.bufPrint(&buf, .rfc3339); diff --git a/src/integration_tests.zig b/src/integration_tests.zig index 8f556b3..c5a15ca 100644 --- a/src/integration_tests.zig +++ b/src/integration_tests.zig @@ -1,6 +1,5 @@ const std = @import("std"); const testing = std.testing; -const ArrayList = std.ArrayList; const build_options = @import("build_options"); const atom = @import("atom.zig"); diff --git a/src/main.zig b/src/main.zig index ac19017..a41bee9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -10,8 +10,6 @@ const Codeberg = @import("providers/Codeberg.zig"); const SourceHut = @import("providers/SourceHut.zig"); const atom = @import("atom.zig"); const config = @import("config.zig"); -const Config = config.Config; -const SourceHutConfig = config.SourceHutConfig; const xml_parser = @import("xml_parser.zig"); const zeit = @import("zeit"); diff --git a/src/timestamp_tests.zig b/src/timestamp_tests.zig index 081643f..577835a 100644 --- a/src/timestamp_tests.zig +++ b/src/timestamp_tests.zig @@ -4,8 +4,6 @@ const config = @import("config.zig"); const xml_parser = @import("xml_parser.zig"); const Release = main.Release; -const Config = config.Config; -const SourceHutConfig = config.SourceHutConfig; test "Config loading without last_check field" { const allocator = std.testing.allocator; diff --git a/src/xml_parser_tests.zig b/src/xml_parser_tests.zig index b8ae249..971a4b9 100644 --- a/src/xml_parser_tests.zig +++ b/src/xml_parser_tests.zig @@ -1,6 +1,5 @@ const std = @import("std"); const testing = std.testing; -const ArrayList = std.ArrayList; const xml_parser = @import("xml_parser.zig"); const atom = @import("atom.zig");