Skip to content

Commit 5321146

Browse files
committed
Add serde(default) to cargo-credential RegistryInfo headers
1 parent c91a693 commit 5321146

File tree

1 file changed

+1
-1
lines changed
  • credential/cargo-credential/src

1 file changed

+1
-1
lines changed

credential/cargo-credential/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub struct RegistryInfo<'a> {
6363
/// The crates.io registry will be `crates-io` (`CRATES_IO_REGISTRY`).
6464
pub name: Option<&'a str>,
6565
/// Headers from attempting to access a registry that resulted in a HTTP 401.
66-
#[serde(skip_serializing_if = "Vec::is_empty")]
66+
#[serde(skip_serializing_if = "Vec::is_empty", default)]
6767
pub headers: Vec<String>,
6868
}
6969

0 commit comments

Comments
 (0)