diff --git a/src/db/Remote.zig b/src/db/Remote.zig index 0ea80c4..b4aa2e3 100644 --- a/src/db/Remote.zig +++ b/src/db/Remote.zig @@ -11,7 +11,7 @@ const db = &_internal.db; pub const Remote = struct { id: u64, uuid: ulid.ULID, - @"type": Type, + type: Type, domain: string, pub const table_name = "remotes"; diff --git a/src/main.zig b/src/main.zig index 3a6c542..e5afc9e 100644 --- a/src/main.zig +++ b/src/main.zig @@ -121,7 +121,7 @@ pub fn pek_fix_date(alloc: *std.mem.Allocator, in: string) !string { } pub fn pek_tree_url(alloc: *std.mem.Allocator, remo: db.Remote, repo: string, commit: string) !string { - return switch (remo.@"type") { + return switch (remo.type) { .github => try std.fmt.allocPrint(alloc, "https://github.com/{s}/tree/{s}", .{ repo, commit }), }; }