authorgravatar for cursey@live.comcursey <cursey@live.com> 2021-12-17 20:42:12 -08:00
committergravatar for cursey@live.comcursey <cursey@live.com> 2021-12-17 20:42:12 -08:00
logf8f82e9548c4b88b2b78a74da083cf9b7b7a12d3
tree0afe60fc1860c8ad1aca755940b9f4dad91dd3dc
parentd4544410f811c402b866f21f63588d1aae1b2d90
signaturelock-open Commit is signed but in an unrecognized format.

Fix for Zig std.mem.Allocator changes


1 files changed, 2 insertions(+), 2 deletions(-)

src/lib.zig+2-2
......@@ -3,7 +3,7 @@ pub const licenses = @import("licenses-text");
33const leven = @import("leven");
44const fscheck = @import("fs-check");
55
6pub fn detect(alloc: *std.mem.Allocator, license_src: []const u8) ![]const u8 {
6pub fn detect(alloc: std.mem.Allocator, license_src: []const u8) ![]const u8 {
77 var min: ?usize = null;
88 var ind: ?usize = null;
99
......@@ -19,7 +19,7 @@ pub fn detect(alloc: *std.mem.Allocator, license_src: []const u8) ![]const u8 {
1919 return licenses.spdx[ind.?][0];
2020}
2121
22pub fn detectInDir(alloc: *std.mem.Allocator, dir: std.fs.Dir) !?[]const u8 {
22pub fn detectInDir(alloc: std.mem.Allocator, dir: std.fs.Dir) !?[]const u8 {
2323 const lic_filename = (try testLicenseFile(dir, "LICENSE")) orelse
2424 (try testLicenseFile(dir, "LICENSE.md")) orelse
2525 null;