Skip to content

Commit 2139ea1

Browse files
author
Vadim Platonov
committed
[Rust] Do not derive Debug on packed struct
See [#46043](rust-lang/rust#46043).
1 parent a48c0a6 commit 2139ea1

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
@@ -197,7 +197,7 @@ private static void generateSingleBitSet(final List<Token> tokens, final OutputM
197197
final String setType = formatTypeName(beginToken.applicableTypeName());
198198
try (Writer writer = outputManager.createOutput(setType + " bit set"))
199199
{
200-
writer.append("#[derive(Debug,Default)]\n");
200+
writer.append("#[derive(Default)]\n");
201201
writer.append("#[repr(C,packed)]\n");
202202
final String rustPrimitiveType = rustTypeName(beginToken.encoding().primitiveType());
203203
writer.append(format("pub struct %s(pub %s);\n", setType, rustPrimitiveType));

0 commit comments

Comments
 (0)