@@ -50,7 +50,8 @@ create_config! {
50
50
comment_width: usize , 80 , false ,
51
51
"Maximum length of comments. No effect unless wrap_comments = true" ;
52
52
normalize_comments: bool , false , true , "Convert /* */ comments to // comments where possible" ;
53
- license_template_path: String , String :: default ( ) , false , "Beginning of file must match license template" ;
53
+ license_template_path: String , String :: default ( ) , false ,
54
+ "Beginning of file must match license template" ;
54
55
format_strings: bool , false , false , "Format string literals where necessary" ;
55
56
56
57
// Single line expressions and items
@@ -239,16 +240,21 @@ mod test {
239
240
create_config ! {
240
241
// Options that are used by the generated functions
241
242
max_width: usize , 100 , true , "Maximum width of each line" ;
242
- use_small_heuristics: bool , true , false , "Whether to use different formatting for items and \
243
- expressions if they satisfy a heuristic notion of 'small'.";
244
- license_template_path: String , String :: default ( ) , false , "Beginning of file must match license template" ;
245
- required_version: String , env!( "CARGO_PKG_VERSION" ) . to_owned( ) , false , "Require a specific version of rustfmt." ;
246
- ignore: IgnoreList , IgnoreList :: default ( ) , false , "Skip formatting the specified files and directories." ;
243
+ use_small_heuristics: bool , true , false ,
244
+ "Whether to use different formatting for items and \
245
+ expressions if they satisfy a heuristic notion of 'small'.";
246
+ license_template_path: String , String :: default ( ) , false ,
247
+ "Beginning of file must match license template" ;
248
+ required_version: String , env!( "CARGO_PKG_VERSION" ) . to_owned( ) , false ,
249
+ "Require a specific version of rustfmt." ;
250
+ ignore: IgnoreList , IgnoreList :: default ( ) , false ,
251
+ "Skip formatting the specified files and directories." ;
247
252
verbose: bool , false , false , "Use verbose output" ;
248
253
file_lines: FileLines , FileLines :: all( ) , false ,
249
254
"Lines to format; this is not supported in rustfmt.toml, and can only be specified \
250
255
via the --file-lines option";
251
- width_heuristics: WidthHeuristics , WidthHeuristics :: scaled( 100 ) , false , "'small' heuristic values" ;
256
+ width_heuristics: WidthHeuristics , WidthHeuristics :: scaled( 100 ) , false ,
257
+ "'small' heuristic values" ;
252
258
253
259
// Options that are used by the tests
254
260
stable_option: bool , false , true , "A stable option" ;
0 commit comments