diff --git a/src/browser/webapi/Document.zig b/src/browser/webapi/Document.zig index 1891ae96..764e3be4 100644 --- a/src/browser/webapi/Document.zig +++ b/src/browser/webapi/Document.zig @@ -61,7 +61,7 @@ _fonts: ?*FontFaceSet = null, _write_insertion_point: ?*Node = null, _script_created_parser: ?Parser.Streaming = null, _adopted_style_sheets: ?js.Object.Global = null, -_selection: Selection = .{._rc = .init(1)}, +_selection: Selection = .{ ._rc = .init(1) }, // https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#throw-on-dynamic-markup-insertion-counter // Incremented during custom element reactions when parsing. When > 0, diff --git a/src/lightpanda.zig b/src/lightpanda.zig index 9d163de4..36213624 100644 --- a/src/lightpanda.zig +++ b/src/lightpanda.zig @@ -215,7 +215,7 @@ pub fn RC(comptime T: type) type { _refs: T = 0, pub fn init(refs: T) @This() { - return .{._refs = refs}; + return .{ ._refs = refs }; } pub fn acquire(self: *@This()) void {