From: Ian Jackson Date: Fri, 23 Jul 2021 22:15:15 +0000 (+0100) Subject: wip parsing X-Git-Tag: hippotat/1.0.0~513 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=0c03880f86de4bf0f3f436724e8b12c131605c95;p=hippotat.git wip parsing Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 98d67ed..31a0fb9 100644 --- a/src/config.rs +++ b/src/config.rs @@ -255,7 +255,7 @@ pub fn read() { agg.read_extra(extra).context("extra config")?; } - eprintln!("GOT {:?}", agg); + eprintln!("GOT {:#?}", agg); Ok::<_,AE>(()) })().context("read configuration")?; diff --git a/src/types.rs b/src/types.rs index ecfb68a..2b0ff24 100644 --- a/src/types.rs +++ b/src/types.rs @@ -34,7 +34,7 @@ impl FromStr for ServerName { )"x, s) { throw!(anyhow!("bad syntax for server name")); } - if regex_is_match!(r"[a-z-]", s) { + if ! regex_is_match!(r"[a-z-]", s) { throw!(anyhow!("bad syntax for server name \ (too much like an IPv4 address)")); }