Skip to content

Commit

Permalink
[Rust] fix CodeQL warning by removing unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
wbprime committed Oct 31, 2024
1 parent 2de5483 commit f96ccc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ private static void generateFromStrImplForEnum(
indent(writer, 0, "impl core::str::FromStr for %s {\n", enumRustName);
indent(writer, 1, "type Err = ();\n\n");
indent(writer, 1, "#[inline]\n");
indent(writer, 1, "fn from_str(v: &str) -> core::result::Result<Self, Self::Err> {\n", primitiveType);
indent(writer, 1, "fn from_str(v: &str) -> core::result::Result<Self, Self::Err> {\n");
indent(writer, 2, "match v {\n");
for (final Token token : messageBody)
{
Expand Down

0 comments on commit f96ccc6

Please sign in to comment.