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 {
2830
2830
#[ derive( Debug , Default , Deserialize ) ]
2831
2831
#[ serde( rename_all = "kebab-case" ) ]
2832
2832
pub struct ProgressConfig {
2833
+ #[ serde( default ) ]
2833
2834
pub when : ProgressWhen ,
2834
2835
pub width : Option < usize > ,
2835
2836
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ fn bad_progress_config_missing_width() {
53
53
}
54
54
55
55
#[ cargo_test]
56
- fn bad_progress_config_missing_when ( ) {
56
+ fn default_progress_is_auto ( ) {
57
57
let p = project ( )
58
58
. file (
59
59
".cargo/config.toml" ,
@@ -65,16 +65,7 @@ fn bad_progress_config_missing_when() {
65
65
. file ( "src/lib.rs" , "" )
66
66
. build ( ) ;
67
67
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 ( ) ;
78
69
}
79
70
80
71
#[ cargo_test]
You can’t perform that action at this time.
0 commit comments