Skip to content

Commit f96ccc6

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

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
@@ -1339,7 +1339,7 @@ private static void generateFromStrImplForEnum(
13391339
indent(writer, 0, "impl core::str::FromStr for %s {\n", enumRustName);
13401340
indent(writer, 1, "type Err = ();\n\n");
13411341
indent(writer, 1, "#[inline]\n");
1342-
indent(writer, 1, "fn from_str(v: &str) -> core::result::Result<Self, Self::Err> {\n", primitiveType);
1342+
indent(writer, 1, "fn from_str(v: &str) -> core::result::Result<Self, Self::Err> {\n");
13431343
indent(writer, 2, "match v {\n");
13441344
for (final Token token : messageBody)
13451345
{

0 commit comments

Comments
 (0)