zlint clean
This commit is contained in:
parent
8a2e691c1f
commit
069c746b58
5 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue