diff --git a/src/commands/options.zig b/src/commands/options.zig index 06c153e..f4ab3f0 100644 --- a/src/commands/options.zig +++ b/src/commands/options.zig @@ -132,8 +132,6 @@ pub fn printSection( test "printSection shows header and contracts" { var buf: [8192]u8 = undefined; var w: std.Io.Writer = .fixed(&buf); - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; - defer _ = gpa.deinit(); const calls = [_]zfin.OptionContract{ .{ .contract_type = .call, .strike = 150.0, .expiration = .{ .days = 20100 }, .bid = 5.0, .ask = 5.50, .last_price = 5.25 }, .{ .contract_type = .call, .strike = 155.0, .expiration = .{ .days = 20100 }, .bid = 2.0, .ask = 2.50, .last_price = 2.25 }, @@ -148,8 +146,6 @@ test "printSection shows header and contracts" { test "display shows chain header no color" { var buf: [8192]u8 = undefined; var w: std.Io.Writer = .fixed(&buf); - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; - defer _ = gpa.deinit(); const calls = [_]zfin.OptionContract{}; const puts = [_]zfin.OptionContract{}; const chains = [_]zfin.OptionsChain{