From f4efcf0b4539ecc7c465e5ef1e3ccd1a944fc85c Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Fri, 3 Apr 2020 14:14:40 -0400 Subject: [PATCH] better error message for invalid selector characters --- src/selector/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector/mod.rs b/src/selector/mod.rs index 97b341c..4bce1f1 100644 --- a/src/selector/mod.rs +++ b/src/selector/mod.rs @@ -316,7 +316,7 @@ impl Selector { } continue; } - _ => todo!(), + _ => return Err("expected selector.".into()), }); iter.next(); }