commit | 2bd1742b0ee7a22bac1791493f1717abcd726196 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Mon Dec 25 18:44:20 2017 -0500 |
committer | David Tolnay <dtolnay@gmail.com> | Mon Dec 25 18:44:20 2017 -0500 |
tree | c606f26ac6ac39a66920d2d362c70eb85a1b5877 | |
parent | 475288add0ce718da85a74b4072ab8eccdc54ef0 [diff] [blame] |
Fix warning about unused variables in reject!()
diff --git a/synom/src/lib.rs b/synom/src/lib.rs index b92fe75..d3646f7 100644 --- a/synom/src/lib.rs +++ b/synom/src/lib.rs
@@ -610,9 +610,10 @@ /// ``` #[macro_export] macro_rules! reject { - ($i:expr,) => { + ($i:expr,) => {{ + let _ = $i; $crate::parse_error() - } + }} } /// Run a series of parsers and produce all of the results in a tuple.