Allow unused braces in macro output.
Fixes warnings in beta/nightly rustc
This commit is contained in:
parent
f9b14f7b00
commit
be6cd1080d
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ fn derive_json_schema(mut input: syn::DeriveInput) -> TokenStream {
|
||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
|
#[allow(unused_braces)]
|
||||||
impl #impl_generics schemars::JsonSchema for #type_name #ty_generics #where_clause {
|
impl #impl_generics schemars::JsonSchema for #type_name #ty_generics #where_clause {
|
||||||
fn schema_name() -> std::string::String {
|
fn schema_name() -> std::string::String {
|
||||||
#schema_name
|
#schema_name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue