From f1a04eb97eae45e0dc93e3f4ce6b4cd613754e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=B6rner?= Date: Fri, 26 Jan 2018 13:01:04 +0100 Subject: [PATCH] fix unnecessary parentheses warnings --- src/sequence.rs | 2 +- src/whitespace.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sequence.rs b/src/sequence.rs index 0bbefe009..10e78513c 100644 --- a/src/sequence.rs +++ b/src/sequence.rs @@ -361,7 +361,7 @@ macro_rules! delimited( #[macro_export] macro_rules! do_parse ( (__impl $i:expr, $consumed:expr, ( $($rest:expr),* )) => ( - $crate::IResult::Done($i, ( $($rest),* )) + $crate::IResult::Done($i, $($rest),*) ); (__impl $i:expr, $consumed:expr, $field:ident : $submac:ident!( $($args:tt)* ) ) => ( diff --git a/src/whitespace.rs b/src/whitespace.rs index 3b8f7bd5b..682697c56 100644 --- a/src/whitespace.rs +++ b/src/whitespace.rs @@ -676,7 +676,7 @@ macro_rules! eat_separator ( $crate::IResult::Done(($i).slice(index..), ($i).slice(..index)) }, ::std::option::Option::None => { - $crate::IResult::Done(($i).slice(($i).input_len()..), ($i)) + $crate::IResult::Done(($i).slice(($i).input_len()..), $i) } } }