Refactor out "local_id" for type definitions
This commit is contained in:
parent
9e507272da
commit
4be21bd811
2 changed files with 19 additions and 22 deletions
|
@ -51,7 +51,7 @@ fn derive_json_schema(
|
|||
let (impl_generics, ty_generics, where_clause) = cont.generics.split_for_impl();
|
||||
|
||||
if let Some(transparent_field) = cont.transparent_field() {
|
||||
let (ty, type_def) = schema_exprs::type_for_field_schema(transparent_field, 0);
|
||||
let (ty, type_def) = schema_exprs::type_for_field_schema(transparent_field);
|
||||
return Ok(quote! {
|
||||
const _: () = {
|
||||
#crate_alias
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue