Skip to content

Commit 5b5836e

Browse files
committed
update to zig 0.15.0-dev.1222+5fb36d260
1 parent a67317f commit 5b5836e

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

build.zig.zon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .superhtml,
33
.version = "0.4.0",
44
.fingerprint = 0xc5e9aede3c1db363,
5-
.minimum_zig_version = "0.15.0-dev.1034+bd97b6618",
5+
.minimum_zig_version = "0.15.0-dev.1222+5fb36d260",
66
.dependencies = .{
77
.afl_kit = .{
88
.url = "git+https://github.com/kristoff-it/zig-afl-kit#8ef04d1db48650345dca68da1e1b8f2615125c40",
@@ -18,8 +18,8 @@
1818
.hash = "tracy-0.0.0-4Xw-1pwwAABTfMgoDP1unCbZDZhJEfict7XCBGF6IdIn",
1919
},
2020
.lsp_kit = .{
21-
.url = "git+https://github.com/zigtools/lsp-kit#e58d398b4058eea09d984d5d039eddd243e535ad",
22-
.hash = "lsp_kit-0.1.0-bi_PL5IyCgCh6ZNq1VaDklFqV0u23xNSXONjfDpYceJr",
21+
.url = "git+https://github.com/zigtools/lsp-kit#4835b9d3d3cf732fe1830189d81f331c68fb3e77",
22+
.hash = "lsp_kit-0.1.0-bi_PL18tCgAMyrZ0tgn_0PXnGEvxGWeNkkRygfe9pX9u",
2323
},
2424
.scripty = .{
2525
.url = "git+https://github.com/kristoff-it/scripty#3d56bb62a1aec0b07b634aea42ec46e72e017e33",

src/Ast.zig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,10 @@ pub fn childrenCount(ast: Ast, node: Node) usize {
233233
return count;
234234
}
235235

236-
pub fn deinit(ast: Ast, gpa: std.mem.Allocator) void {
237-
@constCast(&ast).interface.deinit(gpa);
238-
@constCast(&ast).blocks.deinit(gpa);
236+
pub fn deinit(ast: *const Ast, gpa: std.mem.Allocator) void {
237+
var mut_ast = ast.*;
238+
mut_ast.interface.deinit(gpa);
239+
mut_ast.blocks.deinit(gpa);
239240
gpa.free(ast.nodes);
240241
gpa.free(ast.errors);
241242
}

src/cli/fmt.zig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,13 @@ fn formatFile(
154154
return;
155155
}
156156

157-
var af = try base_dir.atomicFile(sub_path, .{});
157+
var wbuf: [1024]u8 = undefined;
158+
var af = try base_dir.atomicFile(sub_path, .{
159+
.write_buffer = &wbuf,
160+
});
158161
defer af.deinit();
159162

160-
try af.file.writeAll(out_bytes);
163+
try af.file_writer.interface.writeAll(out_bytes);
161164
try af.finish();
162165
try stdout.print("{s}\n", .{full_path});
163166
}

0 commit comments

Comments
 (0)