File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
},
11
11
.dependencies = .{
12
12
.xml = .{
13
- .url = "git+https://github.com/ianprime0509 /zig-xml?ref=0.1.0#0747fa10b28ade9a8516bc5b122dcad997bd8fa7 " ,
14
- .hash = "1220fcb9b8da8bcfdaa18c81678c6b5cf41d63a2bf9fde7551b4390279cc473a2520 " ,
13
+ .url = "git+https://github.com/sin-ack /zig-xml?ref=zig-0.14.0-fix#353d365b18b942223c5a34181e4d8570f6935366 " ,
14
+ .hash = "12204f358836a6294cf9176db61f3b66b756d669b758abfdf4a788f8247e41bd931c " ,
15
15
},
16
16
.libxml2 = .{
17
17
.url = "git+https://github.com/ianprime0509/zig-libxml2?ref=main#6cebb963e0ad5789825eb2333a4d21fab8f35a92" ,
Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ pub const FieldType = union(enum) {
846
846
847
847
fn ParseError (comptime Children : type ) type {
848
848
// WTF
849
- const ReaderType = @typeInfo (std .meta .fieldInfo (Children , .reader ).type ).Pointer .child ;
849
+ const ReaderType = @typeInfo (std .meta .fieldInfo (Children , .reader ).type ).pointer .child ;
850
850
return error {InvalidGir } || ReaderType .Error || Allocator .Error ;
851
851
}
852
852
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub const std_options: std.Options = .{
31
31
32
32
pub fn logImpl (
33
33
comptime level : log.Level ,
34
- comptime scope : @Type (.EnumLiteral ),
34
+ comptime scope : @Type (.enum_literal ),
35
35
comptime format : []const u8 ,
36
36
args : anytype ,
37
37
) void {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub fn ZigWriter(comptime Writer: type) type {
29
29
/// made into its own project.
30
30
pub fn print (w : Self , comptime fmt : []const u8 , args : anytype ) Error ! void {
31
31
@setEvalBranchQuota (100_000 );
32
- const arg_fields = @typeInfo (@TypeOf (args )).Struct .fields ;
32
+ const arg_fields = @typeInfo (@TypeOf (args )).@ "struct" .fields ;
33
33
34
34
comptime var current_arg = 0 ;
35
35
comptime var i = 0 ;
@@ -56,7 +56,7 @@ pub fn ZigWriter(comptime Writer: type) type {
56
56
'L' = > {
57
57
const arg = @field (args , arg_fields [current_arg ].name );
58
58
const arg_type_info = @typeInfo (@TypeOf (arg ));
59
- if (arg_type_info == .Pointer and arg_type_info .Pointer .size == .Slice and arg_type_info .Pointer .child == u8 ) {
59
+ if (arg_type_info == .pointer and arg_type_info .pointer .size == .Slice and arg_type_info .pointer .child == u8 ) {
60
60
try w .out .print ("{s}" , .{arg });
61
61
} else {
62
62
try w .out .print ("{}" , .{arg });
You can’t perform that action at this time.
0 commit comments