File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,8 @@ mod test {
465465
466466 #[ test]
467467 fn test_dump_default_config ( ) {
468- const DEFAULT_CONFIG : & str = r#"max_width = 100
468+ let default_config = format ! (
469+ r#"max_width = 100
469470hard_tabs = false
470471tab_spaces = 4
471472newline_style = "Auto"
@@ -519,7 +520,7 @@ use_field_init_shorthand = false
519520force_explicit_abi = true
520521condense_wildcard_suffixes = false
521522color = "Auto"
522- required_version = "1.4.4 "
523+ required_version = "{} "
523524unstable_features = false
524525disable_all_formatting = false
525526skip_children = false
@@ -531,9 +532,11 @@ report_fixme = "Never"
531532ignore = []
532533emit_mode = "Files"
533534make_backup = false
534- "# ;
535+ "# ,
536+ env!( "CARGO_PKG_VERSION" )
537+ ) ;
535538 let toml = Config :: default ( ) . all_options ( ) . to_toml ( ) . unwrap ( ) ;
536- assert_eq ! ( & toml, DEFAULT_CONFIG ) ;
539+ assert_eq ! ( & toml, & default_config ) ;
537540 }
538541
539542 // 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