Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

glib-macros: Use absolute paths to the StaticType trait #12

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glib-macros/src/genum_derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion glib-macros/src/gflags_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down