refactor: simplify and organize the errors
This commit is contained in:
4 files changed
+23
-35
No files matched your search
@@ -199,8 +199,7 @@ impl Parse for ComponentField {
|
||||
}
|
||||
|
||||
if input.peek(LitStr) && input.peek2(LitStr) {
|
||||
let item = input.parse::<LitStr>().unwrap();
|
||||
proc_macro_error::emit_error!(item, "this attribute is missing a trailing comma")
|
||||
attr_after_element!(input.span());
|
||||
}
|
||||
|
||||
let content = ContentField::ManExpr(input.parse()?);
|
||||
|
||||
Reference in new issue
Block a user