Specify full path for String (#19)

This commit is contained in:
Atsuki Takahashi 2020-03-25 03:05:37 +09:00 committed by GitHub
parent 3e1ab76c21
commit 873ab3ae02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ pub fn derive_json_schema(input: proc_macro::TokenStream) -> proc_macro::TokenSt
let impl_block = quote! {
#[automatically_derived]
impl #impl_generics schemars::JsonSchema for #type_name #ty_generics #where_clause {
fn schema_name() -> String {
fn schema_name() -> std::string::String {
#schema_name
}