Skip to content

Commit a48c0a6

Browse files
author
Vadim Platonov
committed
[Rust] Remove unnecessary mut qualifier in after_member
1 parent c723b63 commit a48c0a6

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
@@ -648,7 +648,7 @@ private static void writeGroupDecoderTopTypes(
648648
indent(out).append("}\n");
649649

650650
indent(out).append("#[inline]\n");
651-
indent(out, 1, "fn after_member(mut self) -> %s {\n", groupLevelNextDecoderType);
651+
indent(out, 1, "fn after_member(self) -> %s {\n", groupLevelNextDecoderType);
652652
indent(out, 2).append("if self.index <= self.max_index {\n");
653653
indent(out, 3).append("Either::Left(self)\n");
654654
indent(out, 2).append("} else {\n").append(INDENT).append(INDENT).append(INDENT)

0 commit comments

Comments
 (0)