Skip to content

Commit 2fec633

Browse files
committed
.csmrc parsing: Use defaults from the Default impl
1 parent 3b11b97 commit 2fec633

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/csmrc.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@ use std::default::Default;
66
use std::io::{Error, ErrorKind};
77

88
#[derive(Debug, Deserialize)]
9+
#[serde(default)]
910
pub struct Config {
1011
/// Override the $MAMBA_ROOT_PREFIX when shelling out to micromamba.
11-
#[serde(default)]
1212
pub mamba_root_prefix: Option<String>,
1313

1414
/// If true, don't make any changes or call any commands, just print what
1515
/// we *would* do normally.
16-
#[serde(default)]
1716
pub noop_mode: bool,
1817

1918
/// Override the cache directory for testing purposes.
20-
#[serde(default)]
2119
pub cache_dir: Option<String>,
2220

2321
/// If false, skip downloading micromamba even if needed (for testing).
24-
#[serde(default)]
2522
pub download_micromamba: bool,
2623
}
2724

0 commit comments

Comments
 (0)