Remove unnecessary allocator from mutex

This commit is contained in:
Benjamin Feng 2020-01-30 00:20:11 -06:00
parent 184128fd9e
commit c1fb97aef6

View File

@ -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();