Skip to content

Commit ebabbaa

Browse files
committed
Remove extra spaces in doc comments
1 parent 0d821fd commit ebabbaa

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/IdentityCacheDecorator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class IdentityCacheConfigCustomization(codegenContext: ClientCodegenContext) : C
7373
/// .build();
7474
/// let client = $moduleUseName::Client::from_conf(config);
7575
/// ```
76-
"""
76+
///"""
7777
rustTemplate(
7878
"""
7979
$docs

codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/endpoint/EndpointConfigCustomization.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ internal class EndpointConfigCustomization(
6262
// if there are no rules, we don't generate a default resolver—we need to also suppress those docs.
6363
val defaultResolverDocs =
6464
if (typesGenerator.defaultResolver() != null) {
65-
"""
65+
"""///
6666
/// When unset, the client will used a generated endpoint resolver based on the endpoint resolution
6767
/// rules for `$moduleUseName`.
68-
"""
68+
///"""
6969
} else {
7070
"/// This service does not define a default endpoint resolver."
7171
}

codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/ServiceRuntimePluginGenerator.kt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ sealed class ServiceRuntimePluginSection(name: String) : Section(name) {
3030
/**
3131
* Hook for adding additional things to config inside service runtime plugins.
3232
*/
33-
data class AdditionalConfig(val newLayerName: String, val serviceConfigName: String) : ServiceRuntimePluginSection("AdditionalConfig") {
33+
data class AdditionalConfig(val newLayerName: String, val serviceConfigName: String) :
34+
ServiceRuntimePluginSection("AdditionalConfig") {
3435
/** Adds a value to the config bag */
3536
fun putConfigValue(
3637
writer: RustWriter,
@@ -40,7 +41,8 @@ sealed class ServiceRuntimePluginSection(name: String) : Section(name) {
4041
}
4142
}
4243

43-
data class RegisterRuntimeComponents(val serviceConfigName: String) : ServiceRuntimePluginSection("RegisterRuntimeComponents") {
44+
data class RegisterRuntimeComponents(val serviceConfigName: String) :
45+
ServiceRuntimePluginSection("RegisterRuntimeComponents") {
4446
/** Generates the code to register an interceptor */
4547
fun registerInterceptor(
4648
writer: RustWriter,
@@ -111,7 +113,10 @@ class ServiceRuntimePluginGenerator(
111113
) {
112114
val additionalConfig =
113115
writable {
114-
writeCustomizations(customizations, ServiceRuntimePluginSection.AdditionalConfig("cfg", "_service_config"))
116+
writeCustomizations(
117+
customizations,
118+
ServiceRuntimePluginSection.AdditionalConfig("cfg", "_service_config"),
119+
)
115120
}
116121
writer.rustTemplate(
117122
"""
@@ -144,7 +149,7 @@ class ServiceRuntimePluginGenerator(
144149
}
145150
}
146151
147-
/// Cross-operation shared-state singletons
152+
// Cross-operation shared-state singletons
148153
#{declare_singletons}
149154
""",
150155
*codegenScope,
@@ -166,7 +171,10 @@ class ServiceRuntimePluginGenerator(
166171
},
167172
"runtime_components" to
168173
writable {
169-
writeCustomizations(customizations, ServiceRuntimePluginSection.RegisterRuntimeComponents("_service_config"))
174+
writeCustomizations(
175+
customizations,
176+
ServiceRuntimePluginSection.RegisterRuntimeComponents("_service_config"),
177+
)
170178
},
171179
"declare_singletons" to
172180
writable {

codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/config/ServiceConfigGenerator.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class ServiceConfigGenerator(
371371
/// .build();
372372
/// let client = $moduleUseName::Client::from_conf(config);
373373
/// ```
374-
"""
374+
///"""
375375
rustTemplate(
376376
"""
377377
$docs
@@ -541,7 +541,10 @@ class ServiceConfigGenerator(
541541
docs("Apply test defaults to the builder")
542542
rustBlock("pub fn apply_test_defaults(&mut self) -> &mut Self") {
543543
customizations.forEach { it.section(ServiceConfig.DefaultForTests("self"))(this) }
544-
rustTemplate("self.behavior_version = #{Some}(crate::config::BehaviorVersion::latest());", *preludeScope)
544+
rustTemplate(
545+
"self.behavior_version = #{Some}(crate::config::BehaviorVersion::latest());",
546+
*preludeScope,
547+
)
545548
rust("self")
546549
}
547550

0 commit comments

Comments
 (0)