From b2f2f778f28b9f1cc76815a920142f22f18922c4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 23 Jul 2021 12:54:02 +0100 Subject: [PATCH] wip impl config reading, runs Signed-off-by: Ian Jackson --- src/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2