patch Campfire events with no location

This commit is contained in:
_ 2025-09-11 03:35:59 +00:00
parent 9dba0779eb
commit b320605f26
3 changed files with 15 additions and 11 deletions

View file

@ -95,9 +95,10 @@ impl Calendar {
}
pub(crate) fn read_from_config(config: Config) -> Result<Self> {
let path = &config.dl.file_path;
let s = std::fs::read_to_string(path).with_context(|| format!("Couldn't read {path:?}"))?;
Self::read_from_str(config, &s)
let path = config.dl.file_path.clone();
let s =
std::fs::read_to_string(&path).with_context(|| format!("Couldn't read {path:?}"))?;
Self::read_from_str(config, &s).with_context(|| format!("Couldn't parse {path:?}"))
}
}