Skip to content

Commit

Permalink
update Smithy version to 1.37 (#2949)
Browse files Browse the repository at this point in the history
----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
  • Loading branch information
Velfi authored Aug 28, 2023
1 parent 778244f commit 83df047
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,12 @@ internal class EndpointTestGenerator(
"let mut out = #{HashMap}::<String, #{Document}>::new();",
*codegenScope,
)
// TODO(https://github.com/awslabs/smithy/pull/1555): remove sort by name when upgrading to
// Smithy version with this PR merged
val keys = mutableListOf<Identifier>()
value.forEach { id, _ -> keys.add(id) }
keys.sortedBy { it.name.value }.forEach { identifier ->
val v = value.get(identifier)
val ids = mutableListOf<Identifier>()
value.forEach { id, _ -> ids.add(id) }
ids.forEach { id ->
val v = value.get(id)
rust(
"out.insert(${identifier.toString().dq()}.to_string(), #W.into());",
"out.insert(${id.toString().dq()}.to_string(), #W.into());",
// When writing into the hashmap, it always needs to be an owned type
generateValue(v),
)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ kotlin.code.style=official

# codegen
smithyGradlePluginVersion=0.7.0
smithyVersion=1.35.0
smithyVersion=1.37.0

# kotlin
kotlinVersion=1.7.21
Expand Down

0 comments on commit 83df047

Please sign in to comment.