@@ -18,7 +18,7 @@ pub use crate::emitter::rustfmt_diff::{ModifiedChunk, ModifiedLines};
18
18
pub use crate :: format_report_formatter:: { FormatReportFormatter , FormatReportFormatterBuilder } ;
19
19
pub use crate :: formatting:: report:: { FormatReport , FormatResult } ;
20
20
21
- use crate :: formatting:: format_input_inner;
21
+ pub ( crate ) use crate :: formatting:: format_input_inner;
22
22
use crate :: { emitter:: Verbosity , result:: OperationError } ;
23
23
24
24
#[ cfg( feature = "config" ) ]
@@ -39,8 +39,6 @@ mod test;
39
39
pub struct OperationSetting {
40
40
/// If set to `true`, format sub-modules which are defined in the given input.
41
41
pub recursive : bool ,
42
- /// If set to `true`, we are formatting a macro definition
43
- pub is_macro_def : bool ,
44
42
pub verbosity : Verbosity ,
45
43
}
46
44
@@ -51,7 +49,12 @@ pub fn format(
51
49
config : & Config ,
52
50
operation_setting : OperationSetting ,
53
51
) -> 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
+ )
55
58
}
56
59
57
60
pub fn format_inputs < ' a > (
0 commit comments