File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -2830,6 +2830,7 @@ pub struct TermConfig {
28302830#[ derive( Debug , Default , Deserialize ) ]
28312831#[ serde( rename_all = "kebab-case" ) ]
28322832pub struct ProgressConfig {
2833+ #[ serde( default ) ]
28332834 pub when : ProgressWhen ,
28342835 pub width : Option < usize > ,
28352836}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ fn bad_progress_config_missing_width() {
5353}
5454
5555#[ cargo_test]
56- fn bad_progress_config_missing_when ( ) {
56+ fn default_progress_is_auto ( ) {
5757 let p = project ( )
5858 . file (
5959 ".cargo/config.toml" ,
@@ -65,16 +65,7 @@ fn bad_progress_config_missing_when() {
6565 . file ( "src/lib.rs" , "" )
6666 . build ( ) ;
6767
68- p. cargo ( "check" )
69- . with_status ( 101 )
70- . with_stderr_data ( str![ [ r#"
71- [ERROR] error in [ROOT]/foo/.cargo/config.toml: could not load config key `term.progress`
72-
73- Caused by:
74- missing field `when`
75-
76- "# ] ] )
77- . run ( ) ;
68+ p. cargo ( "check" ) . run ( ) ;
7869}
7970
8071#[ cargo_test]
You can’t perform that action at this time.
0 commit comments