diff --git a/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java b/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java index 6412649ec..87d217286 100644 --- a/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java +++ b/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java @@ -436,7 +436,7 @@ private static void generatePrimitiveArrayZeroPaddedEncoder( indent(sb, level + 1, "let iter = value.iter().copied().chain(std::iter::repeat(0_%s)).take(%d);\n", rustPrimitiveType, arrayLength); - indent(sb, level + 1, "self.%s_from_iter(iter);", formatFunctionName(name)); + indent(sb, level + 1, "self.%s_from_iter(iter);\n", formatFunctionName(name)); indent(sb, level, "}\n\n"); }