Loading codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustTypes.kt +2 −2 Original line number Diff line number Diff line Loading @@ -68,8 +68,8 @@ sealed class RustType { override val namespace = Namespace companion object { const val Type = "BTreeSet" const val Namespace = "std::collections" const val Type = "Vec" const val Namespace = "std::vec" val RuntimeType = RuntimeType(name = Type, namespace = Namespace, dependency = null) } } Loading codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/HttpProtocolTestGenerator.kt +1 −6 Original line number Diff line number Diff line Loading @@ -422,11 +422,6 @@ class HttpProtocolTestGenerator( // These tests are not even attempted to be compiled, either because they will not compile // or because they are flaky private val DisableTests = setOf( // This test is flaky because of set ordering serialization https://github.com/awslabs/smithy-rs/issues/37 "AwsJson11Enums", "RestJsonJsonEnums", "RestJsonLists" ) private val DisableTests = setOf<String>() } } codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/Instantiator.kt +1 −17 Original line number Diff line number Diff line Loading @@ -162,24 +162,8 @@ class Instantiator( } private fun renderSet(writer: RustWriter, shape: SetShape, data: ArrayNode, ctx: Ctx) { if (symbolProvider.toSymbol(shape).rustType() is RustType.HashSet) { if (!data.isEmpty) { writer.rustBlock("") { write("let mut ret = #T::new();", RustType.HashSet.RuntimeType) data.forEach { v -> withBlock("ret.insert(", ");") { renderMember(this, shape.member, v, ctx) } } write("ret") } } else { writer.write("#T::new()", RustType.HashSet.RuntimeType) } } else { renderList(writer, shape, data, ctx) } } /** * ```rust Loading Loading
codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustTypes.kt +2 −2 Original line number Diff line number Diff line Loading @@ -68,8 +68,8 @@ sealed class RustType { override val namespace = Namespace companion object { const val Type = "BTreeSet" const val Namespace = "std::collections" const val Type = "Vec" const val Namespace = "std::vec" val RuntimeType = RuntimeType(name = Type, namespace = Namespace, dependency = null) } } Loading
codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/HttpProtocolTestGenerator.kt +1 −6 Original line number Diff line number Diff line Loading @@ -422,11 +422,6 @@ class HttpProtocolTestGenerator( // These tests are not even attempted to be compiled, either because they will not compile // or because they are flaky private val DisableTests = setOf( // This test is flaky because of set ordering serialization https://github.com/awslabs/smithy-rs/issues/37 "AwsJson11Enums", "RestJsonJsonEnums", "RestJsonLists" ) private val DisableTests = setOf<String>() } }
codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/Instantiator.kt +1 −17 Original line number Diff line number Diff line Loading @@ -162,24 +162,8 @@ class Instantiator( } private fun renderSet(writer: RustWriter, shape: SetShape, data: ArrayNode, ctx: Ctx) { if (symbolProvider.toSymbol(shape).rustType() is RustType.HashSet) { if (!data.isEmpty) { writer.rustBlock("") { write("let mut ret = #T::new();", RustType.HashSet.RuntimeType) data.forEach { v -> withBlock("ret.insert(", ");") { renderMember(this, shape.member, v, ctx) } } write("ret") } } else { writer.write("#T::new()", RustType.HashSet.RuntimeType) } } else { renderList(writer, shape, data, ctx) } } /** * ```rust Loading