From 7d9cbfed8cfab1cbe610ca2d57ce990bc7a48f9c Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Thu, 2 Feb 2017 09:39:40 -0800 Subject: [PATCH] Move, not copy. --- query-parser/src/parser_util.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/query-parser/src/parser_util.rs b/query-parser/src/parser_util.rs index 9799c237..5cf51958 100644 --- a/query-parser/src/parser_util.rs +++ b/query-parser/src/parser_util.rs @@ -12,20 +12,6 @@ extern crate combine; extern crate edn; extern crate mentat_query; -use self::combine::ParseResult; -use self::combine::combinator::{Expected, FnParser}; - -// Nothing about this is specific to the type of parser. -pub type ResultParser = Expected ParseResult>>; - -/// `satisfy_unwrap!` makes it a little easier to implement a `satisfy_map` -/// body that matches a particular `Value` enum case, otherwise returning `None`. -macro_rules! satisfy_unwrap { - ( $cas: path, $var: ident, $body: block ) => { - satisfy_map(|x: edn::Value| if let $cas($var) = x $body else { None }) - } -} - /// Generate a `satisfy_map` expression that matches a `PlainSymbol` /// value with the given name. ///