mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Use $crate in create_token macro
This commit is contained in:
parent
b7fbd575c5
commit
07673e8eba
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user