From 9f5c380b66e5aee1e8ee81810ab0c9f4b3ef5788 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 4 Aug 2023 16:38:19 -0700 Subject: [PATCH] upgrade date.zig --- src/date.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/date.zig b/src/date.zig index 53acfe8..0c65a4b 100644 --- a/src/date.zig +++ b/src/date.zig @@ -73,7 +73,6 @@ pub fn parseEnglishToDateTime(data: []const u8) !DateTime { // Anything not explicitly set by our string would be 0 var rc = DateTime{ .year = 0, .month = 0, .day = 0, .hour = 0, .minute = 0, .second = 0 }; for (data, 0..) |ch, i| { - _ = i; switch (ch) { ',' => {}, ' ', ':' => { @@ -155,7 +154,6 @@ pub fn parseIso8601ToDateTime(data: []const u8) !DateTime { var rc = DateTime{ .year = 0, .month = 0, .day = 0, .hour = 0, .minute = 0, .second = 0 }; var zulu_time = false; for (data, 0..) |ch, i| { - _ = i; switch (ch) { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' => { if (state == .Start) state = .Year;