Improvements to test coverage (#340)

This increases msrv to 1.70
This commit is contained in:
Graham Esau 2024-09-16 10:06:22 +01:00 committed by GitHub
parent 092dc17ae4
commit a479e6cc0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
239 changed files with 5780 additions and 4883 deletions

View file

@ -10,7 +10,7 @@ license = "MIT"
readme = "README.md"
keywords = ["rust", "json-schema", "serde"]
categories = ["encoding", "no-std"]
rust-version = "1.65"
rust-version = "1.70"
[lib]
proc-macro = true

View file

@ -126,7 +126,10 @@ fn derive_json_schema(mut input: syn::DeriveInput, repr: bool) -> syn::Result<To
(
quote! {
schemars::_private::alloc::borrow::Cow::Owned(
schemars::_private::alloc::format!(#schema_name_fmt #(,#type_params=#type_params::schema_name())* #(,#const_params=#const_params)*)
schemars::_private::alloc::format!(
#schema_name_fmt
#(,#type_params=#type_params::schema_name())*
#(,#const_params=schemars::_private::alloc::string::ToString::to_string(&#const_params))*)
)
},
quote! {