Unverified Commit 1d9aedea authored by Zelda Hessler's avatar Zelda Hessler Committed by GitHub
Browse files

fix: compiler warning in docs index generator (#1900)

parent 6b3e3112
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
package aws.sdk

import org.gradle.api.Project
import software.amazon.smithy.utils.CodeWriter
import software.amazon.smithy.utils.SimpleCodeWriter
import java.io.File

/**
@@ -17,7 +17,7 @@ import java.io.File
 */
fun Project.docsLandingPage(awsServices: AwsServices, outputPath: File) {
    val project = this
    val writer = CodeWriter()
    val writer = SimpleCodeWriter()
    with(writer) {
        write("# AWS SDK for Rust")
        write(
+5 −5
Original line number Diff line number Diff line
@@ -33,12 +33,12 @@ data class VersionsManifest(
                smithyRsRevision = toml.getString("smithy_rs_revision"),
                awsDocSdkExamplesRevision = toml.getString("aws_doc_sdk_examples_revision"),
                crates = toml.getTable("crates").entrySet().map { entry ->
                    val value = (entry.value as Toml)
                    val crate = (entry.value as Toml)
                    entry.key to CrateVersion(
                        category = value.getString("category"),
                        version = value.getString("version"),
                        sourceHash = value.getString("source_hash"),
                        modelHash = value.getString("model_hash"),
                        category = crate.getString("category"),
                        version = crate.getString("version"),
                        sourceHash = crate.getString("source_hash"),
                        modelHash = crate.getString("model_hash"),
                    )
                }.toMap(),
            )