From 07673e8eba6606865407118d6436786219dc87aa Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 22 Mar 2023 23:02:00 +1030 Subject: [PATCH] Use $crate in create_token macro --- imgui/src/tokens.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }