Skip to content

Commit e572672

Browse files
committed
refactor(gctx): remove useless serde(default)
For an Option the default is always `None`. The default `term.progress` will be provided via `unwrap_or_default` at https://github.com/rust-lang/cargo/blob/4406c1b96413/src/cargo/util/context/mod.rs?plain=1#L1151
1 parent cd1f64c commit e572672

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/cargo/util/context/schema.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ pub struct TermConfig {
350350
pub color: Option<String>,
351351
pub hyperlinks: Option<bool>,
352352
pub unicode: Option<bool>,
353-
#[serde(default)]
354353
#[serde(deserialize_with = "progress_or_string")]
355354
pub progress: Option<ProgressConfig>,
356355
}

0 commit comments

Comments
 (0)