mirror of
https://github.com/rust-lang/cargo
synced 2024-08-24 18:15:45 +00:00
Add serde(default) to cargo-credential RegistryInfo headers
This commit is contained in:
parent
c91a693e79
commit
5321146c7e
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue