We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47a4133 commit ce052d8Copy full SHA for ce052d8
src/Manifest.zig
@@ -7,13 +7,15 @@ pub const multihash_hex_digest_len = 2 * multihash_len;
7
pub const MultiHashHexDigest = [multihash_hex_digest_len]u8;
8
9
pub const Dependency = struct {
10
- location: union(enum) {
11
- url: []const u8,
12
- path: []const u8,
13
- },
+ location: Location,
14
location_tok: Ast.TokenIndex,
15
hash: ?[]const u8,
16
hash_tok: Ast.TokenIndex,
+
+ pub const Location = union(enum) {
+ url: []const u8,
17
+ path: []const u8,
18
+ };
19
};
20
21
pub const ErrorMessage = struct {
@@ -249,9 +251,9 @@ const Parse = struct {
249
251
250
252
var dep: Dependency = .{
253
.location = undefined,
- .location_tok = undefined,
254
+ .location_tok = 0,
255
.hash = null,
- .hash_tok = undefined,
256
+ .hash_tok = 0,
257
258
var has_location = false;
259
0 commit comments