mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
zig fmt :|
This commit is contained in:
@@ -40,7 +40,9 @@ pub const MyObject = struct {
|
||||
val: bool,
|
||||
|
||||
pub fn constructor(do_set: bool) MyObject {
|
||||
return .{.val = do_set,};
|
||||
return .{
|
||||
.val = do_set,
|
||||
};
|
||||
}
|
||||
|
||||
pub fn named_get(_: *const MyObject, name: []const u8, has_value: *bool) ?OtherUnion {
|
||||
|
||||
@@ -408,15 +408,12 @@ pub const TrackingAllocator = struct {
|
||||
}
|
||||
|
||||
pub fn allocator(self: *TrackingAllocator) Allocator {
|
||||
return .{
|
||||
.ptr = self,
|
||||
.vtable = &.{
|
||||
return .{ .ptr = self, .vtable = &.{
|
||||
.alloc = alloc,
|
||||
.resize = resize,
|
||||
.free = free,
|
||||
.remap = remap,
|
||||
}
|
||||
};
|
||||
} };
|
||||
}
|
||||
|
||||
fn alloc(
|
||||
|
||||
Reference in New Issue
Block a user