Skip to content

Commit 9bb8074

Browse files
committed
fix: MSRV 1.90 CI fixes
1 parent 37b674f commit 9bb8074

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

aws/codegen-aws-sdk/src/test/kotlin/software/amazon/smithy/rustsdk/EndpointOverrideMetricDecoratorTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class EndpointOverrideMetricDecoratorTest {
8888
awsSdkIntegrationTest(
8989
model,
9090
testParams,
91-
environment = mapOf("RUSTUP_TOOLCHAIN" to "1.88.0"),
91+
environment = mapOf("RUSTUP_TOOLCHAIN" to "1.90.0"),
9292
) { context, rustCrate ->
9393
val rc = context.runtimeConfig
9494
val moduleName = context.moduleUseName()
@@ -156,7 +156,7 @@ class EndpointOverrideMetricDecoratorTest {
156156
awsSdkIntegrationTest(
157157
model,
158158
testParams,
159-
environment = mapOf("RUSTUP_TOOLCHAIN" to "1.88.0"),
159+
environment = mapOf("RUSTUP_TOOLCHAIN" to "1.90.0"),
160160
) { context, rustCrate ->
161161
val rc = context.runtimeConfig
162162
val moduleName = context.moduleUseName()

aws/rust-runtime/aws-types/src/sdk_config.rs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,16 +442,21 @@ impl Builder {
442442
///
443443
/// # Examples
444444
/// Disabling identity caching:
445-
/// ```rust
446-
/// # use aws_types::SdkConfig;
445+
/// ```no_run
446+
/// # #[cfg(feature = "examples")]
447+
/// # fn example() {
448+
/// use aws_types::SdkConfig;
447449
/// use aws_smithy_runtime::client::identity::IdentityCache;
448450
/// let config = SdkConfig::builder()
449451
/// .identity_cache(IdentityCache::no_cache())
450452
/// .build();
453+
/// # }
451454
/// ```
452455
/// Changing settings on the default cache implementation:
453-
/// ```rust
454-
/// # use aws_types::SdkConfig;
456+
/// ```no_run
457+
/// # #[cfg(feature = "examples")]
458+
/// # fn example() {
459+
/// use aws_types::SdkConfig;
455460
/// use aws_smithy_runtime::client::identity::IdentityCache;
456461
/// use std::time::Duration;
457462
///
@@ -462,6 +467,7 @@ impl Builder {
462467
/// .build()
463468
/// )
464469
/// .build();
470+
/// # }
465471
/// ```
466472
pub fn identity_cache(mut self, cache: impl ResolveCachedIdentity + 'static) -> Self {
467473
self.set_identity_cache(Some(cache.into_shared()));
@@ -475,8 +481,10 @@ impl Builder {
475481
/// expires.
476482
///
477483
/// # Examples
478-
/// ```rust
479-
/// # use aws_types::SdkConfig;
484+
/// ```no_run
485+
/// # #[cfg(feature = "examples")]
486+
/// # fn example() {
487+
/// use aws_types::SdkConfig;
480488
/// use aws_smithy_runtime::client::identity::IdentityCache;
481489
///
482490
/// fn override_identity_cache() -> bool {
@@ -489,6 +497,7 @@ impl Builder {
489497
/// builder.set_identity_cache(Some(IdentityCache::lazy().build()));
490498
/// }
491499
/// let config = builder.build();
500+
/// # }
492501
/// ```
493502
pub fn set_identity_cache(&mut self, cache: Option<SharedIdentityCache>) -> &mut Self {
494503
self.identity_cache = cache;

0 commit comments

Comments
 (0)