Skip to content

Commit

Permalink
fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ward committed Dec 23, 2024
1 parent 16c95ae commit 3063dd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ private static void generateRustDoc(
}

private static void generatePrimitiveArrayFromIterEncoder(
final StringBuilder sb,
final int level,
final Token typeToken,
final String name) throws IOException
final StringBuilder sb,
final int level,
final Token typeToken,
final String name) throws IOException
{
final Encoding encoding = typeToken.encoding();
final PrimitiveType primitiveType = encoding.primitiveType();
Expand All @@ -397,7 +397,7 @@ private static void generatePrimitiveArrayFromIterEncoder(
generateRustDoc(sb, level, typeToken, encoding);
indent(sb, level, "#[inline]\n");
indent(sb, level, "pub fn %s_from_iter(&mut self, iter: impl Iterator<Item = %s>) {\n",
formatFunctionName(name), rustPrimitiveType);
formatFunctionName(name), rustPrimitiveType);

indent(sb, level + 1, "let offset = self.%s;\n", getBufOffset(typeToken));
indent(sb, level + 1, "let buf = self.get_buf_mut();\n");
Expand All @@ -417,10 +417,10 @@ private static void generatePrimitiveArrayFromIterEncoder(
}

private static void generatePrimitiveArrayZeroPaddedEncoder(
final StringBuilder sb,
final int level,
final Token typeToken,
final String name) throws IOException
final StringBuilder sb,
final int level,
final Token typeToken,
final String name) throws IOException
{
final Encoding encoding = typeToken.encoding();
final PrimitiveType primitiveType = encoding.primitiveType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void generateRustLiteralNullPrimitiveTypeParam()
@Test
void generateRustLiteralNullValueParam()
{
assertThrows(NullPointerException.class, () -> generateRustLiteral(INT8, (String) null));
assertThrows(NullPointerException.class, () -> generateRustLiteral(INT8, (String)null));
}

@Test
Expand Down

0 comments on commit 3063dd5

Please sign in to comment.