From be6cd1080d61a65c27300ebc6304e184406e0ad3 Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 17 May 2020 17:22:42 +0100 Subject: [PATCH] Allow unused braces in macro output. Fixes warnings in beta/nightly rustc --- schemars_derive/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/schemars_derive/src/lib.rs b/schemars_derive/src/lib.rs index 006d78a..7697011 100644 --- a/schemars_derive/src/lib.rs +++ b/schemars_derive/src/lib.rs @@ -106,6 +106,7 @@ fn derive_json_schema(mut input: syn::DeriveInput) -> TokenStream { quote! { #[automatically_derived] + #[allow(unused_braces)] impl #impl_generics schemars::JsonSchema for #type_name #ty_generics #where_clause { fn schema_name() -> std::string::String { #schema_name