mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
error on non meta input for prop attribute (#469)
This commit is contained in:
parent
eacff684ef
commit
5d612d9740
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue