diff --git a/src/runtime/test_object_types.zig b/src/runtime/test_object_types.zig index 7556e9dd..b3594dc0 100644 --- a/src/runtime/test_object_types.zig +++ b/src/runtime/test_object_types.zig @@ -40,17 +40,19 @@ 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 { if (std.mem.eql(u8, name, "a")) { has_value.* = true; - return .{.Other = .{.val = 4}}; + return .{ .Other = .{ .val = 4 } }; } if (std.mem.eql(u8, name, "c")) { has_value.* = true; - return .{.Bool = true}; + return .{ .Bool = true }; } has_value.* = false; return null; diff --git a/src/test_runner.zig b/src/test_runner.zig index fce1c07a..c7e2ad0d 100644 --- a/src/test_runner.zig +++ b/src/test_runner.zig @@ -408,15 +408,12 @@ pub const TrackingAllocator = struct { } pub fn allocator(self: *TrackingAllocator) Allocator { - return .{ - .ptr = self, - .vtable = &.{ - .alloc = alloc, - .resize = resize, - .free = free, - .remap = remap, - } - }; + return .{ .ptr = self, .vtable = &.{ + .alloc = alloc, + .resize = resize, + .free = free, + .remap = remap, + } }; } fn alloc(