@@ -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