summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordfhoughton <dfhoughton@gmail.com>2019-09-15 18:50:14 -0400
committerdfhoughton <dfhoughton@gmail.com>2019-09-15 18:50:14 -0400
commit217ec4144c4a4a90e81c7407728fe3ce00cff872 (patch)
tree4c9262e4fd014e427b7362044715501302f2f10d
parentce61cbe65cc813fffdef12d05c476b7ef5de2d4f (diff)
downloadtwo-timer-217ec4144c4a4a90e81c7407728fe3ce00cff872.zip
use MATCHER in parsable to spread around the serialization savings
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b430b1a..e75aaf6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -478,7 +478,7 @@ lazy_static! {
/// let copacetic = parsable("5/6/69");
/// ```
pub fn parsable(phrase: &str) -> bool {
- GRAMMAR.rx().unwrap().is_match(phrase)
+ MATCHER.rx.is_match(phrase)
}
/// Converts a time expression into a pair or timestamps and a boolean indicating whether