Add unit test for serde attribute processing

This commit is contained in:
Graham Esau 2019-09-08 23:13:26 +01:00
parent af1fa5fe9e
commit 8d68e36f7c
3 changed files with 53 additions and 10 deletions

View file

@ -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();