error on non meta input for prop attribute (#469)

This commit is contained in:
Roland Fredenhagen 2023-02-04 19:17:04 +01:00 committed by GitHub
parent eacff684ef
commit 5d612d9740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ use convert_case::{
};
use itertools::Itertools;
use proc_macro2::{Ident, TokenStream};
use proc_macro_error::ResultExt;
use quote::{format_ident, ToTokens, TokenStreamExt};
use std::collections::HashSet;
use syn::{
@ -410,7 +411,7 @@ impl PropOpt {
return None;
}
if let Meta::List(MetaList { nested, .. }) = attr.parse_meta().ok()? {
if let Meta::List(MetaList { nested, .. }) = attr.parse_meta().unwrap_or_abort() {
Some(
nested
.iter()