mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +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`).
|
/// The crates.io registry will be `crates-io` (`CRATES_IO_REGISTRY`).
|
||||||
pub name: Option<&'a str>,
|
pub name: Option<&'a str>,
|
||||||
/// Headers from attempting to access a registry that resulted in a HTTP 401.
|
/// 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>,
|
pub headers: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user