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 0efc5f97f..d56c680d2 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 @@ -459,8 +459,7 @@ private static void generatePrimitiveArrayEncoder( if (primitiveType.size() == 1) { - indent(sb, level + 1, "buf.put_%s_at(offset + index, value);\n", - rustPrimitiveType, primitiveType.size()); + indent(sb, level + 1, "buf.put_%s_at(offset + index, value);\n", rustPrimitiveType); } else {