Add unit test for serde attribute processing
This commit is contained in:
parent
af1fa5fe9e
commit
8d68e36f7c
3 changed files with 53 additions and 10 deletions
|
@ -20,7 +20,7 @@ pub fn derive_json_schema(input: proc_macro::TokenStream) -> proc_macro::TokenSt
|
|||
|
||||
preprocess::add_trait_bounds(&mut input.generics);
|
||||
if let Err(e) = preprocess::process_serde_attrs(&mut input) {
|
||||
return e.into();
|
||||
return compile_error(input.span(), e).into();
|
||||
}
|
||||
|
||||
let ctxt = Ctxt::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue