@@ -55,7 +55,7 @@ use hex;
5555/// /// Field 3 doc
5656/// field3: Option<usize>, default = None
5757/// }
58- ///}
58+ /// }
5959/// ```
6060///
6161/// Will generate
@@ -1139,36 +1139,35 @@ impl ConfigOptions {
11391139/// # Example
11401140/// ```
11411141/// use datafusion_common::{
1142- /// config::ConfigExtension, extensions_options,
1143- /// config::ConfigOptions,
1142+ /// config::ConfigExtension, config::ConfigOptions, extensions_options,
11441143/// };
1145- /// // Define a new configuration struct using the `extensions_options` macro
1146- /// extensions_options! {
1147- /// /// My own config options.
1148- /// pub struct MyConfig {
1149- /// /// Should "foo" be replaced by "bar"?
1150- /// pub foo_to_bar: bool, default = true
1144+ /// // Define a new configuration struct using the `extensions_options` macro
1145+ /// extensions_options! {
1146+ /// /// My own config options.
1147+ /// pub struct MyConfig {
1148+ /// /// Should "foo" be replaced by "bar"?
1149+ /// pub foo_to_bar: bool, default = true
11511150///
1152- /// /// How many "baz" should be created?
1153- /// pub baz_count: usize, default = 1337
1154- /// }
1155- /// }
1151+ /// /// How many "baz" should be created?
1152+ /// pub baz_count: usize, default = 1337
1153+ /// }
1154+ /// }
11561155///
1157- /// impl ConfigExtension for MyConfig {
1156+ /// impl ConfigExtension for MyConfig {
11581157/// const PREFIX: &'static str = "my_config";
1159- /// }
1158+ /// }
11601159///
1161- /// // set up config struct and register extension
1162- /// let mut config = ConfigOptions::default();
1163- /// config.extensions.insert(MyConfig::default());
1160+ /// // set up config struct and register extension
1161+ /// let mut config = ConfigOptions::default();
1162+ /// config.extensions.insert(MyConfig::default());
11641163///
1165- /// // overwrite config default
1166- /// config.set("my_config.baz_count", "42").unwrap();
1164+ /// // overwrite config default
1165+ /// config.set("my_config.baz_count", "42").unwrap();
11671166///
1168- /// // check config state
1169- /// let my_config = config.extensions.get::<MyConfig>().unwrap();
1170- /// assert!(my_config.foo_to_bar,);
1171- /// assert_eq!(my_config.baz_count, 42,);
1167+ /// // check config state
1168+ /// let my_config = config.extensions.get::<MyConfig>().unwrap();
1169+ /// assert!(my_config.foo_to_bar,);
1170+ /// assert_eq!(my_config.baz_count, 42,);
11721171/// ```
11731172///
11741173/// # Note:
0 commit comments