patch Campfire events with no location
This commit is contained in:
parent
9dba0779eb
commit
b320605f26
3 changed files with 15 additions and 11 deletions
|
@ -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:?}"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue