remove IS_STATIC
This commit is contained in:
1 parent
ce902e4586
commit
c59926cb1f
1 file changed
+1
-7
@@ -615,15 +615,10 @@ Finally, call `.build()` to create the instance of `{name}`.
|
|||||||
}
|
}
|
||||||
|
|
||||||
let can_memoize = match are_there_generics {
|
let can_memoize = match are_there_generics {
|
||||||
true => quote! { false },
|
true => quote! { false },
|
||||||
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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user