diff --git a/glib-macros/src/genum_derive.rs b/glib-macros/src/genum_derive.rs index 4fb28c157539..d8bcc1167773 100644 --- a/glib-macros/src/genum_derive.rs +++ b/glib-macros/src/genum_derive.rs @@ -143,7 +143,7 @@ pub fn impl_genum(input: &syn::DeriveInput) -> TokenStream { } } - impl StaticType for #name { + impl #crate_ident::StaticType for #name { fn static_type() -> #crate_ident::Type { #get_type() } diff --git a/glib-macros/src/gflags_attribute.rs b/glib-macros/src/gflags_attribute.rs index d2fae9e7ed73..b86ac785d731 100644 --- a/glib-macros/src/gflags_attribute.rs +++ b/glib-macros/src/gflags_attribute.rs @@ -157,7 +157,7 @@ pub fn impl_gflags(input: &DeriveInput, gtype_name: &LitStr) -> TokenStream { } } - impl StaticType for #name { + impl #crate_ident::StaticType for #name { fn static_type() -> #crate_ident::Type { #get_type() }