diff options
| author | trevyn <230691+trevyn@users.noreply.github.com> | 2023-11-28 10:31:01 +0400 |
|---|---|---|
| committer | Yacin Tmimi <yacintmimi@gmail.com> | 2023-12-23 17:07:53 -0700 |
| commit | c926898ff036a229caa8f6ebb91bd660606b77ae (patch) | |
| tree | c738bf91f531d829161ff001de49ed51aff02db2 | |
| parent | d739d93787314690b5e7823d9e3aae2a8ffd2111 (diff) | |
| download | rust-c926898ff036a229caa8f6ebb91bd660606b77ae.tar.gz rust-c926898ff036a229caa8f6ebb91bd660606b77ae.zip | |
Clarify `format_macro_bodies` description
| -rw-r--r-- | Configurations.md | 2 | ||||
| -rw-r--r-- | src/config/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Configurations.md b/Configurations.md index c9e908d3b47..c1e967c85da 100644 --- a/Configurations.md +++ b/Configurations.md @@ -1098,7 +1098,7 @@ See also [`format_macro_bodies`](#format_macro_bodies). ## `format_macro_bodies` -Format the bodies of macros. +Format the bodies of declarative macro definitions. - **Default value**: `true` - **Possible values**: `true`, `false` diff --git a/src/config/mod.rs b/src/config/mod.rs index f1474fd3e61..2b38b616e29 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -74,7 +74,7 @@ create_config! { format_strings: bool, false, false, "Format string literals where necessary"; format_macro_matchers: bool, false, false, "Format the metavariable matching patterns in macros"; - format_macro_bodies: bool, true, false, "Format the bodies of macros"; + format_macro_bodies: bool, true, false, "Format the bodies of declarative macro definitions"; skip_macro_invocations: MacroSelectors, MacroSelectors::default(), false, "Skip formatting the bodies of macros invoked with the following names."; hex_literal_case: HexLiteralCase, HexLiteralCase::Preserve, false, |
