From c5e88b5a5389a5e560ed18f62d6352efc3b4df71 Mon Sep 17 00:00:00 2001 From: Grant G Date: Thu, 12 Dec 2024 14:56:00 -0800 Subject: [PATCH] chore: fix docs tests with invalid codeblock (#243) --- crates/amzn-codewhisperer-client/src/config.rs | 10 ++++++---- .../amzn-codewhisperer-streaming-client/src/config.rs | 10 ++++++---- crates/amzn-consolas-client/src/config.rs | 10 ++++++---- crates/amzn-qdeveloper-client/src/config.rs | 10 ++++++---- crates/amzn-qdeveloper-streaming-client/src/config.rs | 10 ++++++---- crates/amzn-toolkit-telemetry/src/config.rs | 10 ++++++---- 6 files changed, 36 insertions(+), 24 deletions(-) diff --git a/crates/amzn-codewhisperer-client/src/config.rs b/crates/amzn-codewhisperer-client/src/config.rs index b3b138842..f4ea64dd5 100644 --- a/crates/amzn-codewhisperer-client/src/config.rs +++ b/crates/amzn-codewhisperer-client/src/config.rs @@ -1120,7 +1120,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_codewhisperer_client::config::BehaviorVersion; /// /// let config = amzn_codewhisperer_client::Config::builder() @@ -1129,7 +1130,7 @@ impl Builder { /// .build(); /// let client = amzn_codewhisperer_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_codewhisperer_client::config::BehaviorVersion; @@ -1155,7 +1156,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_codewhisperer_client::config::BehaviorVersion; /// /// let config = amzn_codewhisperer_client::Config::builder() @@ -1164,7 +1166,7 @@ impl Builder { /// .build(); /// let client = amzn_codewhisperer_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_codewhisperer_client::config::BehaviorVersion; diff --git a/crates/amzn-codewhisperer-streaming-client/src/config.rs b/crates/amzn-codewhisperer-streaming-client/src/config.rs index 26847eb47..27d8b2956 100644 --- a/crates/amzn-codewhisperer-streaming-client/src/config.rs +++ b/crates/amzn-codewhisperer-streaming-client/src/config.rs @@ -1102,7 +1102,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_codewhisperer_streaming_client::config::BehaviorVersion; /// /// let config = amzn_codewhisperer_streaming_client::Config::builder() @@ -1111,7 +1112,7 @@ impl Builder { /// .build(); /// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_codewhisperer_streaming_client::config::BehaviorVersion; @@ -1137,7 +1138,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_codewhisperer_streaming_client::config::BehaviorVersion; /// /// let config = amzn_codewhisperer_streaming_client::Config::builder() @@ -1146,7 +1148,7 @@ impl Builder { /// .build(); /// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_codewhisperer_streaming_client::config::BehaviorVersion; diff --git a/crates/amzn-consolas-client/src/config.rs b/crates/amzn-consolas-client/src/config.rs index 7d8dd1379..fdc16887e 100644 --- a/crates/amzn-consolas-client/src/config.rs +++ b/crates/amzn-consolas-client/src/config.rs @@ -1135,7 +1135,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_consolas_client::config::BehaviorVersion; /// /// let config = amzn_consolas_client::Config::builder() @@ -1144,7 +1145,7 @@ impl Builder { /// .build(); /// let client = amzn_consolas_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_consolas_client::config::BehaviorVersion; @@ -1170,7 +1171,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_consolas_client::config::BehaviorVersion; /// /// let config = amzn_consolas_client::Config::builder() @@ -1179,7 +1181,7 @@ impl Builder { /// .build(); /// let client = amzn_consolas_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_consolas_client::config::BehaviorVersion; diff --git a/crates/amzn-qdeveloper-client/src/config.rs b/crates/amzn-qdeveloper-client/src/config.rs index 934055f5d..7810fd892 100644 --- a/crates/amzn-qdeveloper-client/src/config.rs +++ b/crates/amzn-qdeveloper-client/src/config.rs @@ -1135,7 +1135,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_qdeveloper_client::config::BehaviorVersion; /// /// let config = amzn_qdeveloper_client::Config::builder() @@ -1144,7 +1145,7 @@ impl Builder { /// .build(); /// let client = amzn_qdeveloper_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_qdeveloper_client::config::BehaviorVersion; @@ -1170,7 +1171,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_qdeveloper_client::config::BehaviorVersion; /// /// let config = amzn_qdeveloper_client::Config::builder() @@ -1179,7 +1181,7 @@ impl Builder { /// .build(); /// let client = amzn_qdeveloper_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_qdeveloper_client::config::BehaviorVersion; diff --git a/crates/amzn-qdeveloper-streaming-client/src/config.rs b/crates/amzn-qdeveloper-streaming-client/src/config.rs index 14c54408d..e4a8323da 100644 --- a/crates/amzn-qdeveloper-streaming-client/src/config.rs +++ b/crates/amzn-qdeveloper-streaming-client/src/config.rs @@ -1117,7 +1117,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_qdeveloper_streaming_client::config::BehaviorVersion; /// /// let config = amzn_qdeveloper_streaming_client::Config::builder() @@ -1126,7 +1127,7 @@ impl Builder { /// .build(); /// let client = amzn_qdeveloper_streaming_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_qdeveloper_streaming_client::config::BehaviorVersion; @@ -1152,7 +1153,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_qdeveloper_streaming_client::config::BehaviorVersion; /// /// let config = amzn_qdeveloper_streaming_client::Config::builder() @@ -1161,7 +1163,7 @@ impl Builder { /// .build(); /// let client = amzn_qdeveloper_streaming_client::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_qdeveloper_streaming_client::config::BehaviorVersion; diff --git a/crates/amzn-toolkit-telemetry/src/config.rs b/crates/amzn-toolkit-telemetry/src/config.rs index 570172de8..c2b4c3aa3 100644 --- a/crates/amzn-toolkit-telemetry/src/config.rs +++ b/crates/amzn-toolkit-telemetry/src/config.rs @@ -1055,7 +1055,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_toolkit_telemetry::config::BehaviorVersion; /// /// let config = amzn_toolkit_telemetry::Config::builder() @@ -1064,7 +1065,7 @@ impl Builder { /// .build(); /// let client = amzn_toolkit_telemetry::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_toolkit_telemetry::config::BehaviorVersion; @@ -1090,7 +1091,8 @@ impl Builder { /// # Examples /// /// Set the behavior major version to `latest`. This is equivalent to enabling the - /// `behavior-version-latest` cargo feature. ```no_run + /// `behavior-version-latest` cargo feature. + /// ```no_run /// use amzn_toolkit_telemetry::config::BehaviorVersion; /// /// let config = amzn_toolkit_telemetry::Config::builder() @@ -1099,7 +1101,7 @@ impl Builder { /// .build(); /// let client = amzn_toolkit_telemetry::Client::from_conf(config); /// ``` - /// + /// /// Customizing behavior major version: /// ```no_run /// use amzn_toolkit_telemetry::config::BehaviorVersion;