Skip to content

Commit 42ba8c7

Browse files
FIX missing docs error
1 parent fd74029 commit 42ba8c7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/RenderSerdeAttribute.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import software.amazon.smithy.rust.codegen.core.util.isStreaming
1818
public object RenderSerdeAttribute {
1919
public fun forStructureShape(writer: RustWriter, shape: StructureShape, model: Model) {
2020
if (shape.members().none { it.isEventStream(model) }) {
21-
importSerde(writer)
2221
writeAttributes(writer)
2322
}
2423
}

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/StructureGenerator.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ open class StructureGenerator(
160160
}
161161

162162
open fun renderStructure() {
163+
RenderSerdeAttribute.importSerde(writer)
164+
163165
val symbol = symbolProvider.toSymbol(shape)
164166
val containerMeta = symbol.expectRustMetadata()
165167
writer.documentShape(shape, model)

0 commit comments

Comments
 (0)