vec: rework part 2

This commit is contained in:
nym21
2025-04-09 22:59:18 +02:00
parent 962254e511
commit 41cf0225e3
21 changed files with 678 additions and 368 deletions

View File

@@ -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()
})
}