diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/CargoTomlGenerator.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/CargoTomlGenerator.kt index 816dd0f45fa..c2fd941a059 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/CargoTomlGenerator.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/CargoTomlGenerator.kt @@ -81,5 +81,4 @@ class CargoTomlGenerator( } } -fun smithyCodegenVersion(): String = - try { Version.crateVersion() } catch (ex: Exception) { "unknown" } +fun smithyCodegenVersion(): String = Version.crateVersion()