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 74ff55d commit 06e6acdCopy full SHA for 06e6acd
rust/patchable/src/main.rs
@@ -39,7 +39,6 @@ struct ProductConfig {
39
///
40
/// This value is _not_ used by `checkout`, that uses [`ProductVersionConfig::mirror`] instead.
41
/// `init --mirror` copies this value into [`ProductVersionConfig::mirror`].
42
- #[serde(skip_serializing_if = "Option::is_none")]
43
default_mirror: Option<String>,
44
}
45
@@ -583,6 +582,7 @@ fn main() -> Result<()> {
583
582
let mirror_url = if mirror {
584
let mut mirror_url = config
585
.default_mirror
+ .filter(|s| !s.is_empty())
586
.context(InitMirrorNotConfiguredSnafu)?;
587
if ssh {
588
mirror_url =
0 commit comments