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
+1 -7
+1 -7
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()
}