Revert "Change config option from format_doc_comments to format_code_in_doc_comments."
This reverts commit 6a6924c12b.
This commit is contained in:
parent
6a6924c12b
commit
97d7216cd4
17 changed files with 19 additions and 19 deletions
|
|
@ -353,7 +353,7 @@ fn identify_comment(
|
|||
trim_left_preserve_layout(first_group, shape.indent, config)?
|
||||
} else if !config.normalize_comments()
|
||||
&& !config.wrap_comments()
|
||||
&& !config.format_code_in_doc_comments()
|
||||
&& !config.format_doc_comments()
|
||||
{
|
||||
light_rewrite_comment(first_group, shape.indent, config, is_doc_comment)
|
||||
} else {
|
||||
|
|
@ -656,7 +656,7 @@ impl<'a> CommentRewrite<'a> {
|
|||
_ => {
|
||||
let mut config = self.fmt.config.clone();
|
||||
config.set().wrap_comments(false);
|
||||
if config.format_code_in_doc_comments() {
|
||||
if config.format_doc_comments() {
|
||||
if let Some(s) =
|
||||
crate::format_code_block(&self.code_block_buffer, &config)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ create_config! {
|
|||
|
||||
// Comments. macros, and strings
|
||||
wrap_comments: bool, false, false, "Break comments to fit on the line";
|
||||
format_code_in_doc_comments: bool, false, false, "Format the code snippet in doc comments.";
|
||||
format_doc_comments: bool, false, false, "Format doc comments.";
|
||||
comment_width: usize, 80, false,
|
||||
"Maximum length of comments. No effect unless wrap_comments = true";
|
||||
normalize_comments: bool, false, false, "Convert /* */ comments to // comments where possible";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue