fix compile errors on date.zig
This commit is contained in:
parent
5ee53a493d
commit
e5b3f03681
|
@ -94,7 +94,7 @@ pub fn parseEnglishToDateTime(data: []const u8) !DateTime {
|
||||||
|
|
||||||
fn endEnglishState(current_state: EnglishParsingState, date: *DateTime, prev_data: []const u8) !EnglishParsingState {
|
fn endEnglishState(current_state: EnglishParsingState, date: *DateTime, prev_data: []const u8) !EnglishParsingState {
|
||||||
var next_state: EnglishParsingState = undefined;
|
var next_state: EnglishParsingState = undefined;
|
||||||
log.debug("endEnglishState. Current state '{s}', data: {s}", .{ current_state, prev_data });
|
log.debug("endEnglishState. Current state '{}', data: {s}", .{ current_state, prev_data });
|
||||||
|
|
||||||
// Using two switches is slightly less efficient, but more readable
|
// Using two switches is slightly less efficient, but more readable
|
||||||
switch (current_state) {
|
switch (current_state) {
|
||||||
|
@ -200,7 +200,7 @@ fn parseIso8601BasicFormatToDateTime(data: []const u8) !DateTime {
|
||||||
|
|
||||||
fn endIsoState(current_state: IsoParsingState, date: *DateTime, prev_data: []const u8) !IsoParsingState {
|
fn endIsoState(current_state: IsoParsingState, date: *DateTime, prev_data: []const u8) !IsoParsingState {
|
||||||
var next_state: IsoParsingState = undefined;
|
var next_state: IsoParsingState = undefined;
|
||||||
log.debug("endIsoState. Current state '{s}', data: {s}", .{ current_state, prev_data });
|
log.debug("endIsoState. Current state '{}', data: {s}", .{ current_state, prev_data });
|
||||||
|
|
||||||
// Using two switches is slightly less efficient, but more readable
|
// Using two switches is slightly less efficient, but more readable
|
||||||
switch (current_state) {
|
switch (current_state) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user