| ... | ... | @@ -3,10 +3,8 @@ const std = @import("std"); |
| 3 | 3 | const detectlicense = @import("detect-license"); |
| 4 | 4 | |
| 5 | 5 | pub fn main() !void { |
| 6 | | std.log.info("All your codebase are belong to us.", .{}); |
| 7 | | |
| 8 | 6 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; |
| 9 | | const alloc = &gpa.allocator; |
| 7 | const alloc = gpa.allocator(); |
| 10 | 8 | |
| 11 | 9 | const license = try detectlicense.detectInDir(alloc, std.fs.cwd()); |
| 12 | 10 | std.debug.assert(std.mem.eql(u8, license.?, "MIT")); |