fix more compile errors - leaving 2 nasty ones

This commit is contained in:
Emil Lerch 2023-08-05 16:26:09 -07:00
parent 63ff325068
commit 4bc8889d32
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 5 additions and 5 deletions

View File

@ -76,7 +76,7 @@ pub fn Request(comptime request_action: anytype) type {
Self.service_meta.version, Self.service_meta.version,
action.action_name, 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. // 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 // 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 \\This could be the result of a bug or a stale set of code generated
\\service models. \\service models.
\\ \\
\\Model Type: {s} \\Model Type: {}
\\ \\
\\Response from server: \\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 \\This could be the result of a bug or a stale set of code generated
\\service models. \\service models.
\\ \\
\\Model Type: {s} \\Model Type: {}
\\ \\
\\Response from server: \\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 { 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{}; if (!@hasDecl(@TypeOf(request), "http_header")) return &[_]awshttp.Header{};
const http_header = @TypeOf(request).http_header; const http_header = @TypeOf(request).http_header;
const fields = std.meta.fields(@TypeOf(http_header)); const fields = std.meta.fields(@TypeOf(http_header));

View File

@ -54,7 +54,7 @@ pub fn encodeInternal(
rc = try encodeInternal(allocator, parent, field_name, first, obj.*, writer, options); rc = try encodeInternal(allocator, parent, field_name, first, obj.*, writer, options);
} else { } else {
if (!first) _ = try writer.write("&"); 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; rc = false;
}, },
.Struct => if (std.mem.eql(u8, "", field_name)) { .Struct => if (std.mem.eql(u8, "", field_name)) {