chore: update to new getty API
This commit is contained in:
parent
aef6ee81aa
commit
45675cafa3
12
src/net.zig
12
src/net.zig
|
@ -48,11 +48,7 @@ pub fn newCurl() !*c.CURL {
|
|||
pub const VersionFile = struct {
|
||||
tarball: [:0]const u8,
|
||||
|
||||
pub const @"getty.dbt" = struct {
|
||||
pub fn is(comptime T: type) bool {
|
||||
return T == VersionFile;
|
||||
}
|
||||
|
||||
pub const @"getty.db" = struct {
|
||||
pub const attributes = .{
|
||||
.Container = .{ .ignore_unknown_fields = true },
|
||||
};
|
||||
|
@ -65,11 +61,7 @@ pub const Version = struct {
|
|||
|
||||
file: ?VersionFile = null,
|
||||
|
||||
pub const @"getty.dbt" = struct {
|
||||
pub fn is(comptime T: type) bool {
|
||||
return T == Version;
|
||||
}
|
||||
|
||||
pub const @"getty.db" = struct {
|
||||
pub const attributes = .{
|
||||
.Container = .{ .ignore_unknown_fields = true },
|
||||
.file = .{
|
||||
|
|
Loading…
Reference in New Issue