| ... | @@ -176,7 +176,7 @@ pub const dynamic_providers = struct { | ... | @@ -176,7 +176,7 @@ pub const dynamic_providers = struct { |
| 176 | }; | 176 | }; |
| 177 | | 177 | |
| 178 | pub fn providerById(alloc: std.mem.Allocator, name: string) !?Provider { | 178 | pub fn providerById(alloc: std.mem.Allocator, name: string) !?Provider { |
| 179 | inline for (std.meta.declarations(providers)) |item| { | 179 | inline for (comptime std.meta.declarations(providers)) |item| { |
| 180 | const p = @field(providers, item.name); | 180 | const p = @field(providers, item.name); |
| 181 | if (std.mem.eql(u8, p.id, name)) { | 181 | if (std.mem.eql(u8, p.id, name)) { |
| 182 | return p; | 182 | return p; |
| ... | @@ -186,7 +186,7 @@ pub fn providerById(alloc: std.mem.Allocator, name: string) !?Provider { | ... | @@ -186,7 +186,7 @@ pub fn providerById(alloc: std.mem.Allocator, name: string) !?Provider { |
| 186 | const p_id = name[0..c_ind]; | 186 | const p_id = name[0..c_ind]; |
| 187 | const domain = name[c_ind + 1 ..]; | 187 | const domain = name[c_ind + 1 ..]; |
| 188 | const args = .{ .domain = domain }; | 188 | const args = .{ .domain = domain }; |
| 189 | inline for (std.meta.declarations(dynamic_providers)) |item| { | 189 | inline for (comptime std.meta.declarations(dynamic_providers)) |item| { |
| 190 | const didp = @field(dynamic_providers, item.name); | 190 | const didp = @field(dynamic_providers, item.name); |
| 191 | if (std.mem.eql(u8, didp.id, p_id)) { | 191 | if (std.mem.eql(u8, didp.id, p_id)) { |
| 192 | return Provider{ | 192 | return Provider{ |