remove IS_STATIC

This commit is contained in:
Evan Almloff committed 2024-01-07 09:19:40 -06:00
1 parent ce902e4586
commit c59926cb1f
1 file changed
-6
-6
View File
@@ -619,11 +619,6 @@ Finally, call `.build()` to create the instance of `{name}`.
false => quote! { self == other }, false => quote! { self == other },
}; };
let is_static = match are_there_generics {
true => quote! { false },
false => quote! { true },
};
Ok(quote! { Ok(quote! {
impl #impl_generics #name #ty_generics #where_clause { impl #impl_generics #name #ty_generics #where_clause {
#[doc = #builder_method_doc] #[doc = #builder_method_doc]
@@ -657,7 +652,6 @@ Finally, call `.build()` to create the instance of `{name}`.
#b_generics_where_extras_predicates #b_generics_where_extras_predicates
{ {
type Builder = #builder_name #generics_with_empty; type Builder = #builder_name #generics_with_empty;
const IS_STATIC: bool = #is_static;
fn builder() -> Self::Builder { fn builder() -> Self::Builder {
#name::builder() #name::builder()
} }