Skip to content

Commit 8882c66

Browse files
committed
Remove a spurious lifetime from a parameter a slice-encoding method
1 parent 06a869d commit 8882c66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ scratchChain, rustTypeName(node.blockLengthType),
539539
indent(out, 1).append("}\n");
540540

541541
indent(out).append("#[inline]\n");
542-
indent(out, 1, "pub fn %s_from_slice(mut self, s: &%s [%s]) -> CodecResult<%s> {\n",
543-
formatMethodName(node.originalName), DATA_LIFETIME, fieldsType,
542+
indent(out, 1, "pub fn %s_from_slice(mut self, s: &[%s]) -> CodecResult<%s> {\n",
543+
formatMethodName(node.originalName), fieldsType,
544544
withLifetime(afterGroupCoderType));
545545
indent(out, 2, "%s.write_type::<%s>(&%s, %s)?; // block length\n",
546546
scratchChain, rustTypeName(node.blockLengthType),

0 commit comments

Comments
 (0)