diff --git a/futures-macro-async/src/lib.rs b/futures-macro-async/src/lib.rs index b88a23c1c3..f9dfc5ad24 100644 --- a/futures-macro-async/src/lib.rs +++ b/futures-macro-async/src/lib.rs @@ -525,8 +525,8 @@ if_nightly! { impl synom::Synom for AsyncArgs { named!(parse -> Self, map!( - option!(parens!(call!(Punctuated::::parse_separated_nonempty))), - |p| AsyncArgs(p.map(|d| d.1.into_iter().collect()).unwrap_or_default()) + option!(call!(Punctuated::::parse_separated_nonempty)), + |p| AsyncArgs(p.map(|d| d.into_iter().collect()).unwrap_or_default()) )); } @@ -546,8 +546,8 @@ if_nightly! { impl synom::Synom for AsyncStreamArgs { named!(parse -> Self, map!( - option!(parens!(call!(Punctuated::::parse_separated_nonempty))), - |p| AsyncStreamArgs(p.map(|d| d.1.into_iter().collect()).unwrap_or_default()) + option!(call!(Punctuated::::parse_separated_nonempty)), + |p| AsyncStreamArgs(p.map(|d| d.into_iter().collect()).unwrap_or_default()) )); } } diff --git a/futures/tests/async_await_tests.rs b/futures/tests/async_await_tests.rs index 5d27629f39..56c610604e 100644 --- a/futures/tests/async_await_tests.rs +++ b/futures/tests/async_await_tests.rs @@ -1,4 +1,4 @@ -#![cfg_attr(feature = "nightly", feature(proc_macro, generators, pin))] +#![cfg_attr(feature = "nightly", feature(proc_macro, proc_macro_non_items, generators, pin))] extern crate futures;