File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,8 @@ mod test {
465
465
466
466
#[ test]
467
467
fn test_dump_default_config ( ) {
468
- const DEFAULT_CONFIG : & str = r#"max_width = 100
468
+ let default_config = format ! (
469
+ r#"max_width = 100
469
470
hard_tabs = false
470
471
tab_spaces = 4
471
472
newline_style = "Auto"
@@ -519,7 +520,7 @@ use_field_init_shorthand = false
519
520
force_explicit_abi = true
520
521
condense_wildcard_suffixes = false
521
522
color = "Auto"
522
- required_version = "1.4.4 "
523
+ required_version = "{} "
523
524
unstable_features = false
524
525
disable_all_formatting = false
525
526
skip_children = false
@@ -531,9 +532,11 @@ report_fixme = "Never"
531
532
ignore = []
532
533
emit_mode = "Files"
533
534
make_backup = false
534
- "# ;
535
+ "# ,
536
+ env!( "CARGO_PKG_VERSION" )
537
+ ) ;
535
538
let toml = Config :: default ( ) . all_options ( ) . to_toml ( ) . unwrap ( ) ;
536
- assert_eq ! ( & toml, DEFAULT_CONFIG ) ;
539
+ assert_eq ! ( & toml, & default_config ) ;
537
540
}
538
541
539
542
// FIXME(#2183): these tests cannot be run in parallel because they use env vars.
You can’t perform that action at this time.
0 commit comments