Restore ParseQuote impl for Punctuated
diff --git a/src/parse_quote.rs b/src/parse_quote.rs
index 2ef14fe..6b1bb52 100644
--- a/src/parse_quote.rs
+++ b/src/parse_quote.rs
@@ -118,6 +118,7 @@
#[cfg(any(feature = "full", feature = "derive"))]
use {attr, Attribute};
+use punctuated::Punctuated;
#[cfg(any(feature = "full", feature = "derive"))]
impl ParseQuote for Attribute {
@@ -129,3 +130,9 @@
}
}
}
+
+impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> {
+ fn parse(input: ParseStream) -> Result<Self> {
+ Self::parse_terminated(input)
+ }
+}