mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-28 16:49:58 -07:00
vec: rework part 2
This commit is contained in:
@@ -272,7 +272,7 @@ impl RunConfig {
|
||||
}
|
||||
|
||||
fn read(path: &Path) -> Self {
|
||||
fs::read_to_string(path).map_or(RunConfig::default(), |contents| {
|
||||
fs::read_to_string(path).map_or_else(RunConfig::default, |contents| {
|
||||
toml::from_str(&contents).unwrap_or_default()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user