@@ -18,7 +18,7 @@ pub use crate::emitter::rustfmt_diff::{ModifiedChunk, ModifiedLines};
1818pub use crate :: format_report_formatter:: { FormatReportFormatter , FormatReportFormatterBuilder } ;
1919pub use crate :: formatting:: report:: { FormatReport , FormatResult } ;
2020
21- use crate :: formatting:: format_input_inner;
21+ pub ( crate ) use crate :: formatting:: format_input_inner;
2222use crate :: { emitter:: Verbosity , result:: OperationError } ;
2323
2424#[ cfg( feature = "config" ) ]
@@ -39,8 +39,6 @@ mod test;
3939pub struct OperationSetting {
4040 /// If set to `true`, format sub-modules which are defined in the given input.
4141 pub recursive : bool ,
42- /// If set to `true`, we are formatting a macro definition
43- pub is_macro_def : bool ,
4442 pub verbosity : Verbosity ,
4543}
4644
@@ -51,7 +49,12 @@ pub fn format(
5149 config : & Config ,
5250 operation_setting : OperationSetting ,
5351) -> Result < FormatReport , OperationError > {
54- format_input_inner ( input, config, operation_setting)
52+ format_input_inner (
53+ input,
54+ config,
55+ operation_setting,
56+ /* is_macro_def */ false ,
57+ )
5558}
5659
5760pub fn format_inputs < ' a > (
0 commit comments