remove IS_STATIC

This commit is contained in:
Evan Almloff 2024-01-07 09:19:40 -06:00
parent ce902e4586
commit c59926cb1f

View file

@ -615,15 +615,10 @@ Finally, call `.build()` to create the instance of `{name}`.
}
let can_memoize = match are_there_generics {
true => quote! { false },
true => quote! { false },
false => quote! { self == other },
};
let is_static = match are_there_generics {
true => quote! { false },
false => quote! { true },
};
Ok(quote! {
impl #impl_generics #name #ty_generics #where_clause {
#[doc = #builder_method_doc]
@ -657,7 +652,6 @@ Finally, call `.build()` to create the instance of `{name}`.
#b_generics_where_extras_predicates
{
type Builder = #builder_name #generics_with_empty;
const IS_STATIC: bool = #is_static;
fn builder() -> Self::Builder {
#name::builder()
}