run zig fmt on some of the codebase

See #1003
This commit is contained in:
Andrew Kelley
2018-05-26 18:16:39 -04:00
parent 118d41ef83
commit b184ae5ca5
28 changed files with 920 additions and 852 deletions

View File

@@ -13,14 +13,14 @@ pub const FailingAllocator = struct {
deallocations: usize,
pub fn init(allocator: &mem.Allocator, fail_index: usize) FailingAllocator {
return FailingAllocator {
return FailingAllocator{
.internal_allocator = allocator,
.fail_index = fail_index,
.index = 0,
.allocated_bytes = 0,
.freed_bytes = 0,
.deallocations = 0,
.allocator = mem.Allocator {
.allocator = mem.Allocator{
.allocFn = alloc,
.reallocFn = realloc,
.freeFn = free,