From: Ian Jackson Date: Fri, 23 Jul 2021 11:54:02 +0000 (+0100) Subject: wip impl config reading, runs X-Git-Tag: hippotat/1.0.0~521 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=b2f2f778f28b9f1cc76815a920142f22f18922c4;p=hippotat.git wip impl config reading, runs Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 4053c60..64e2451 100644 --- a/src/config.rs +++ b/src/config.rs @@ -90,7 +90,9 @@ impl Aggregate { let mut f = f.context("open")?; let mut s = String::new(); - f.read_to_string(&mut s).context("read")?; + let y = f.read_to_string(&mut s); + if let Some(anyway) = anyway.ok(&y) { return Some(anyway) } + y.context("read")?; let mut ini = Ini::new_cs(); ini.set_default_section(OUTSIDE_SECTION);