Skip to content

Commit

Permalink
Add serde(default) to cargo-credential RegistryInfo headers
Browse files Browse the repository at this point in the history
  • Loading branch information
arlosi committed Jul 31, 2023
1 parent c91a693 commit 5321146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credential/cargo-credential/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub struct RegistryInfo<'a> {
/// The crates.io registry will be `crates-io` (`CRATES_IO_REGISTRY`).
pub name: Option<&'a str>,
/// Headers from attempting to access a registry that resulted in a HTTP 401.
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(skip_serializing_if = "Vec::is_empty", default)]
pub headers: Vec<String>,
}

Expand Down

0 comments on commit 5321146

Please sign in to comment.