We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91a693 commit 5321146Copy full SHA for 5321146
credential/cargo-credential/src/lib.rs
@@ -63,7 +63,7 @@ pub struct RegistryInfo<'a> {
63
/// The crates.io registry will be `crates-io` (`CRATES_IO_REGISTRY`).
64
pub name: Option<&'a str>,
65
/// Headers from attempting to access a registry that resulted in a HTTP 401.
66
- #[serde(skip_serializing_if = "Vec::is_empty")]
+ #[serde(skip_serializing_if = "Vec::is_empty", default)]
67
pub headers: Vec<String>,
68
}
69
0 commit comments