fix config_gen

This commit is contained in:
Techatrix 2023-01-28 20:04:02 +01:00 committed by Lee Cannon
parent 805e8389cb
commit 3080a5d315

View File

@ -531,7 +531,14 @@ fn collectBuiltinData(allocator: std.mem.Allocator, version: []const u8, langref
switch (tokenizer.next().id) { switch (tokenizer.next().id) {
.Separator => { .Separator => {
std.debug.assert(tokenizer.next().id == .TagContent); std.debug.assert(tokenizer.next().id == .TagContent);
std.debug.assert(tokenizer.next().id == .BracketClose); switch (tokenizer.next().id) {
.Separator => {
std.debug.assert(tokenizer.next().id == .TagContent);
std.debug.assert(tokenizer.next().id == .BracketClose);
},
.BracketClose => {},
else => unreachable,
}
}, },
.BracketClose => {}, .BracketClose => {},
else => unreachable, else => unreachable,
@ -865,7 +872,7 @@ const Response = union(enum) {
fn httpGET(allocator: std.mem.Allocator, uri: std.Uri) !Response { fn httpGET(allocator: std.mem.Allocator, uri: std.Uri) !Response {
var client = std.http.Client{ .allocator = allocator }; var client = std.http.Client{ .allocator = allocator };
defer client.deinit(allocator); defer client.deinit();
try client.ca_bundle.rescan(allocator); try client.ca_bundle.rescan(allocator);
var request = try client.request(uri, .{}, .{}); var request = try client.request(uri, .{}, .{});