Loading buildSrc/src/main/kotlin/CodegenTestCommon.kt +3 −3 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ private fun generateSmithyBuild(projectDir: String, pluginName: String, tests: L enum class Cargo(val toString: String) { CHECK("cargoCheck"), TEST("cargoTest"), DOCS("cargoDocs"), DOCS("cargoDoc"), CLIPPY("cargoClippy"); } Loading Loading @@ -102,9 +102,9 @@ fun cargoCommands(properties: PropertyRetriever): List<Cargo> { when (it) { "check" -> Cargo.CHECK "test" -> Cargo.TEST "docs" -> Cargo.DOCS "doc" -> Cargo.DOCS "clippy" -> Cargo.CLIPPY else -> throw IllegalArgumentException("Unexpected Cargo command `$it` (valid commands are `check`, `test`, `docs`, `clippy`)") else -> throw IllegalArgumentException("Unexpected Cargo command `$it` (valid commands are `check`, `test`, `doc`, `clippy`)") } } Loading Loading
buildSrc/src/main/kotlin/CodegenTestCommon.kt +3 −3 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ private fun generateSmithyBuild(projectDir: String, pluginName: String, tests: L enum class Cargo(val toString: String) { CHECK("cargoCheck"), TEST("cargoTest"), DOCS("cargoDocs"), DOCS("cargoDoc"), CLIPPY("cargoClippy"); } Loading Loading @@ -102,9 +102,9 @@ fun cargoCommands(properties: PropertyRetriever): List<Cargo> { when (it) { "check" -> Cargo.CHECK "test" -> Cargo.TEST "docs" -> Cargo.DOCS "doc" -> Cargo.DOCS "clippy" -> Cargo.CLIPPY else -> throw IllegalArgumentException("Unexpected Cargo command `$it` (valid commands are `check`, `test`, `docs`, `clippy`)") else -> throw IllegalArgumentException("Unexpected Cargo command `$it` (valid commands are `check`, `test`, `doc`, `clippy`)") } } Loading