| author | |
| committer | |
| log | 68b2c79abc734cfa9a5fb99e12140d84ef6c70a4 |
| tree | 4502b2726cd9340005943c585e3b4e123cce909f |
| parent | b04747977a09237dc9f5040ab6ecfbf3d7f9dd55 |
5 files changed, 9 insertions(+), 9 deletions(-)
src/cmd/license.zig+4-4| ... | ... | @@ -26,12 +26,12 @@ pub fn execute(args: [][]u8) !void { |
| 26 | 26 | }; |
| 27 | 27 | const top_module = try common.collect_deps_deep(cachepath, dir, &options); |
| 28 | 28 | |
| 29 | const master_list = &List.init(gpa); | |
| 30 | try common.collect_pkgs(top_module, master_list); | |
| 29 | var master_list = List.init(gpa); | |
| 30 | try common.collect_pkgs(top_module, &master_list); | |
| 31 | 31 | |
| 32 | const map = &Map.init(gpa); | |
| 32 | var map = Map.init(gpa); | |
| 33 | 33 | |
| 34 | const unspecified_list = &List.init(gpa); | |
| 34 | var unspecified_list = List.init(gpa); | |
| 35 | 35 | |
| 36 | 36 | for (master_list.items) |item| { |
| 37 | 37 | if (item.clean_path.len == 0) { |
src/common.zig+1-1| ... | ... | @@ -295,7 +295,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO |
| 295 | 295 | pub fn add_files_package(alloc: std.mem.Allocator, cachepath: string, pkg_name: string, mdir: std.fs.Dir, dirs: []const string) !zigmod.Module { |
| 296 | 296 | const fname = try std.mem.join(alloc, "", &.{ pkg_name, ".zig" }); |
| 297 | 297 | |
| 298 | const map = &std.StringHashMap(string).init(alloc); | |
| 298 | var map = std.StringHashMap(string).init(alloc); | |
| 299 | 299 | defer map.deinit(); |
| 300 | 300 | |
| 301 | 301 | for (dirs) |dir_path| { |
src/util/funcs.zig+2-2| ... | ... | @@ -172,7 +172,7 @@ const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"; |
| 172 | 172 | pub fn random_string(alloc: std.mem.Allocator, len: usize) !string { |
| 173 | 173 | const now = @intCast(u64, std.time.nanoTimestamp()); |
| 174 | 174 | var rand = std.rand.DefaultPrng.init(now); |
| 175 | const r = &rand.random(); | |
| 175 | var r = rand.random(); | |
| 176 | 176 | var buf = try alloc.alloc(u8, len); |
| 177 | 177 | var i: usize = 0; |
| 178 | 178 | while (i < len) : (i += 1) { |
| ... | ... | @@ -225,7 +225,7 @@ pub fn validate_hash(alloc: std.mem.Allocator, input: string, file_path: string) |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | pub fn do_hash(alloc: std.mem.Allocator, comptime algo: type, data: string) !string { |
| 228 | const h = &algo.init(.{}); | |
| 228 | var h = algo.init(.{}); | |
| 229 | 229 | var out: [algo.digest_length]u8 = undefined; |
| 230 | 230 | h.update(data); |
| 231 | 231 | h.final(&out); |
src/util/module.zig+1-1| ... | ... | @@ -82,7 +82,7 @@ pub const Module = struct { |
| 82 | 82 | } |
| 83 | 83 | }.lt); |
| 84 | 84 | |
| 85 | const h = &std.crypto.hash.Blake3.init(.{}); | |
| 85 | var h = std.crypto.hash.Blake3.init(.{}); | |
| 86 | 86 | for (file_list_2.items) |item| { |
| 87 | 87 | const abs_path = try std.fs.path.join(alloc, &.{ cdpath, self.clean_path, item }); |
| 88 | 88 | const file = try std.fs.cwd().openFile(abs_path, .{}); |
src/util/yaml.zig+1-1| ... | ... | @@ -170,7 +170,7 @@ pub fn parse(alloc: std.mem.Allocator, input: string) !Document { |
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | const p = &Parser{ | |
| 173 | var p = Parser{ | |
| 174 | 174 | .alloc = alloc, |
| 175 | 175 | .tokens = all_events.items, |
| 176 | 176 | .lines = lines, |