diff --git a/src/aws.zig b/src/aws.zig index da03d1d..d39ad25 100644 --- a/src/aws.zig +++ b/src/aws.zig @@ -76,7 +76,7 @@ pub fn Request(comptime request_action: anytype) type { Self.service_meta.version, action.action_name, }); - log.debug("proto: {s}", .{Self.service_meta.aws_protocol}); + log.debug("proto: {}", .{Self.service_meta.aws_protocol}); // It seems as though there are 3 major branches of the 6 protocols. // 1. query/ec2_query, which are identical until you get to complex @@ -600,7 +600,7 @@ pub fn Request(comptime request_action: anytype) type { \\This could be the result of a bug or a stale set of code generated \\service models. \\ - \\Model Type: {s} + \\Model Type: {} \\ \\Response from server: \\ @@ -620,7 +620,7 @@ pub fn Request(comptime request_action: anytype) type { \\This could be the result of a bug or a stale set of code generated \\service models. \\ - \\Model Type: {s} + \\Model Type: {} \\ \\Response from server: \\ @@ -674,7 +674,7 @@ fn generalAllocPrint(allocator: std.mem.Allocator, val: anytype) !?[]const u8 { } } fn headersFor(allocator: std.mem.Allocator, request: anytype) ![]awshttp.Header { - log.debug("Checking for headers to include for type {s}", .{@TypeOf(request)}); + log.debug("Checking for headers to include for type {}", .{@TypeOf(request)}); if (!@hasDecl(@TypeOf(request), "http_header")) return &[_]awshttp.Header{}; const http_header = @TypeOf(request).http_header; const fields = std.meta.fields(@TypeOf(http_header)); diff --git a/src/url.zig b/src/url.zig index 6be5d11..c4792bd 100644 --- a/src/url.zig +++ b/src/url.zig @@ -54,7 +54,7 @@ pub fn encodeInternal( rc = try encodeInternal(allocator, parent, field_name, first, obj.*, writer, options); } else { if (!first) _ = try writer.write("&"); - try writer.print("{s}{s}={s}", .{ parent, field_name, obj }); + try writer.print("{s}{s}={any}", .{ parent, field_name, obj }); rc = false; }, .Struct => if (std.mem.eql(u8, "", field_name)) {