Skip to content

Commit 3b63ba4

Browse files
committed
[Rust] fix CodeQL warning by removing unused argument
1 parent f96ccc6 commit 3b63ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ private static void generateDisplayImplForEnum(
13601360
{
13611361
indent(writer, 0, "impl core::fmt::Display for %s {\n", enumRustName);
13621362
indent(writer, 1, "#[inline]\n");
1363-
indent(writer, 1, "fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n", primitiveType);
1363+
indent(writer, 1, "fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {\n");
13641364
indent(writer, 2, "match self {\n");
13651365
for (final Token token : messageBody)
13661366
{

0 commit comments

Comments
 (0)