Skip to content

Commit

Permalink
[Rust] updated generator to create "_from_iter" and "_zero_padded" fu…
Browse files Browse the repository at this point in the history
…nctions for primitive array
  • Loading branch information
Michael Ward committed Dec 23, 2024
1 parent 8527a10 commit 16c95ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 16c95ae

Please sign in to comment.