- // Indentation due to nesting of blocks.
- pub block_indent: Indent,
+ pub inside_macro: RefCell<bool>,
+ // Force block indent style even if we are using visual indent style.
+ pub use_block: RefCell<bool>,
+ // When `is_if_else_block` is true, unindent the comment on top
+ // of the `else` or `else if`.
+ pub is_if_else_block: RefCell<bool>,
+ // When rewriting chain, veto going multi line except the last element
+ pub force_one_line_chain: RefCell<bool>,
+ pub snippet_provider: &'a SnippetProvider<'a>,
+ // Used for `format_snippet`
+ pub(crate) macro_rewrite_failure: RefCell<bool>,
+ pub(crate) report: FormatReport,