diff --git a/imgui/src/tokens.rs b/imgui/src/tokens.rs index 01adf84..83525d1 100644 --- a/imgui/src/tokens.rs +++ b/imgui/src/tokens.rs @@ -19,11 +19,11 @@ macro_rules! create_token { ) => { #[must_use] $(#[$struct_meta])* - pub struct $token_name<'a>($crate::__core::marker::PhantomData<&'a crate::Ui>); + pub struct $token_name<'a>($crate::__core::marker::PhantomData<&'a $crate::Ui>); impl<'a> $token_name<'a> { /// Creates a new token type. - pub(crate) fn new(_: &'a crate::Ui) -> Self { + pub(crate) fn new(_: &'a $crate::Ui) -> Self { Self(std::marker::PhantomData) }