diff --git a/juniper_codegen/src/derive_input_object.rs b/juniper_codegen/src/derive_input_object.rs index c0f30eed..653a5651 100644 --- a/juniper_codegen/src/derive_input_object.rs +++ b/juniper_codegen/src/derive_input_object.rs @@ -158,7 +158,7 @@ pub fn impl_input_object(ast: &syn::DeriveInput) -> Tokens { }; let field_description = match field_attrs.description { Some(s) => quote!{ let field = field.description(#s); }, - None => quote!{ let field = field; }, + None => quote!{}, }; let default = { @@ -207,7 +207,7 @@ pub fn impl_input_object(ast: &syn::DeriveInput) -> Tokens { }; meta_fields.push(meta_field); - // Buil from_input clause. + // Build from_input clause. let from_input_default = match default { Some(ref def) => {