More Type fixes

This commit is contained in:
Bob Farrell 2024-08-31 11:04:33 +01:00
parent af4de258f0
commit a8a552cfa3

View File

@ -101,7 +101,7 @@ const Action = struct {
// Parse a view arg. Grammar: // Parse a view arg. Grammar:
// [index[:static]|get[:static]|post[:static]|put[:static]|patch[:static]|delete[:static]] // [index[:static]|get[:static]|post[:static]|put[:static]|patch[:static]|delete[:static]]
fn parseAction(arg: []const u8) ?Action { fn parseAction(arg: []const u8) ?Action {
inline for (@typeInfo(Method).Enum.fields) |tag| { inline for (@typeInfo(Method).@"enum".fields) |tag| {
const with_static = tag.name ++ ":static"; const with_static = tag.name ++ ":static";
const method: Method = @enumFromInt(tag.value); const method: Method = @enumFromInt(tag.value);