From 60750ad11a077158240c59d5f728c37abbf458a6 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 5 Feb 2022 18:33:19 -0800 Subject: [PATCH] update for zig master --- src/main.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.zig b/src/main.zig index 26516517f87ead80a2174854146f15df36d2804f..1577b92059f5bd39f8d9a8b676ddf22978660662 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3,10 +3,8 @@ const std = @import("std"); const detectlicense = @import("detect-license"); pub fn main() !void { - std.log.info("All your codebase are belong to us.", .{}); - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; - const alloc = &gpa.allocator; + const alloc = gpa.allocator(); const license = try detectlicense.detectInDir(alloc, std.fs.cwd()); std.debug.assert(std.mem.eql(u8, license.?, "MIT")); -- 2.54.0