commit c1fb97aef6d0f7343e9226b2f19fbe9d315afa94 (tree) parent 184128fd9e5bfcf9b9a1c1021cf1d8db03147c28 Author: Benjamin Feng <benjamin.feng@glassdoor.com> Date: Thu, 30 Jan 2020 00:20:11 -0600 Remove unnecessary allocator from mutex Diffstat:
| M | lib/std/mutex.zig | | | 6 | ------ |
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/lib/std/mutex.zig b/lib/std/mutex.zig @@ -306,12 +306,6 @@ const TestContext = struct { }; test "std.Mutex" { - var plenty_of_memory = try std.heap.page_allocator.alloc(u8, 300 * 1024); - defer std.heap.page_allocator.free(plenty_of_memory); - - var fixed_buffer_allocator = std.heap.ThreadSafeFixedBufferAllocator.init(plenty_of_memory); - var a = &fixed_buffer_allocator.allocator; - var mutex = Mutex.init(); defer mutex.deinit();