use explicit version of split
All checks were successful
Generic zig build / build (push) Successful in 41s

This commit is contained in:
Emil Lerch 2024-07-01 14:02:17 -07:00
parent 4ce057ffcb
commit c419359a8c
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -829,7 +829,7 @@ fn getTrait(trait_type: []const u8, value: std.json.Value) SmithyParseError!?Tra
\\aws.protocols#httpChecksum \\aws.protocols#httpChecksum
\\aws.customizations#s3UnwrappedXmlOutput \\aws.customizations#s3UnwrappedXmlOutput
; // NOTE: inputs/outputs are not used in AWS models, but default is and might be handy ; // NOTE: inputs/outputs are not used in AWS models, but default is and might be handy
var iterator = std.mem.split(u8, list, "\n"); var iterator = std.mem.splitScalar(u8, list, '\n');
while (iterator.next()) |known_but_unimplemented| { while (iterator.next()) |known_but_unimplemented| {
if (std.mem.eql(u8, trait_type, known_but_unimplemented)) if (std.mem.eql(u8, trait_type, known_but_unimplemented))
return null; return null;